test for sync (failing)
diff --git a/src/ccnx-wrapper.cpp b/src/ccnx-wrapper.cpp
index 3f82889..c818cd2 100644
--- a/src/ccnx-wrapper.cpp
+++ b/src/ccnx-wrapper.cpp
@@ -60,7 +60,7 @@
m_thread.join ();
ccn_disconnect (m_handle);
- ccn_destroy (&m_handle);
+ //ccn_destroy (&m_handle);
}
void
diff --git a/src/sync-core.cc b/src/sync-core.cc
index 32a1243..e37a367 100644
--- a/src/sync-core.cc
+++ b/src/sync-core.cc
@@ -38,13 +38,13 @@
m_recoverClosure = new Closure(0, boost::bind(&SyncCore::handleRecoverData, this, _1, _2), boost::bind(&SyncCore::handleRecoverInterestTimeout, this, _1));
m_handle->setInterestFilter(m_syncPrefix, boost::bind(&SyncCore::handleInterest, this, _1));
m_log.initYP(m_yp);
- m_scheduler->start();
+ //m_scheduler->start();
sendSyncInterest();
}
SyncCore::~SyncCore()
{
- m_scheduler->shutdown();
+ //m_scheduler->shutdown();
if (m_syncClosure != 0)
{
delete m_syncClosure;
@@ -153,6 +153,9 @@
else if (m_log.LookupSyncLog(*hash) > 0)
{
// we know something more
+ cout << "SyncInterest: " << name << endl;
+ cout << "hash: " << *hash << endl;
+ cout << "root hash: " << *m_rootHash << endl;
SyncStateMsgPtr msg = m_log.FindStateDifferences(*hash, *m_rootHash);
Bytes syncData;