Implementing the forgotten diff() function for DiffState
diff --git a/model/sync-logic.cc b/model/sync-logic.cc
index c4a8487..e39b86b 100644
--- a/model/sync-logic.cc
+++ b/model/sync-logic.cc
@@ -246,6 +246,10 @@
}
diffLog->setDigest(m_state.getDigest());
+ if (m_log.size () > 0)
+ {
+ m_log.get<sequenced> ().front ()->setNext (diffLog);
+ }
m_log.insert (diffLog);
}
catch (Error::SyncXmlDecodingFailure &e)
@@ -256,15 +260,6 @@
if (diffLog->getLeaves ().size () > 0)
{
- // notify upper layer
- BOOST_FOREACH (LeafConstPtr leaf, diffLog->getLeaves ())
- {
- DiffLeafConstPtr diffLeaf = dynamic_pointer_cast<const DiffLeaf> (leaf);
- BOOST_ASSERT (diffLeaf != 0);
-
- // m_fetchCallback (prefix, 1, seq.getSeq());
- }
-
sendSyncInterest();
}
}