Solving bug with interest-table
diff --git a/model/sync-interest-table.cc b/model/sync-interest-table.cc
index a05dba3..b91dee3 100644
--- a/model/sync-interest-table.cc
+++ b/model/sync-interest-table.cc
@@ -45,7 +45,6 @@
Interest
SyncInterestTable::pop ()
{
- expireInterests ();
recursive_mutex::scoped_lock lock (m_mutex);
if (m_table.size () == 0)
diff --git a/model/sync-logic.cc b/model/sync-logic.cc
index fe43abe..ed90655 100644
--- a/model/sync-logic.cc
+++ b/model/sync-logic.cc
@@ -586,5 +586,16 @@
return m_state->getLeaves ().size ();
}
+void
+SyncLogic::printState () const
+{
+ recursive_mutex::scoped_lock lock (m_stateMutex);
+
+ BOOST_FOREACH (const boost::shared_ptr<Sync::Leaf> leaf, m_state->getLeaves ())
+ {
+ std::cout << *leaf << std::endl;
+ }
+}
+
}