Small modification of remove method
diff --git a/model/sync-logic.cc b/model/sync-logic.cc
index d91923c..fe43abe 100644
--- a/model/sync-logic.cc
+++ b/model/sync-logic.cc
@@ -471,17 +471,19 @@
// increment the sequence number for the forwarder node
NameInfoConstPtr forwarderInfo = StdNameInfo::FindOrCreate(forwarderPrefix);
- bool inserted = false;
- bool updated = false;
- SeqNo oldSeq;
- tie (inserted, updated, oldSeq) = m_state->update (forwarderInfo, oldSeq);
- oldSeq.setSeq(oldSeq.getSeq() + 1);
- m_state->update(info, oldSeq);
+ LeafContainer::iterator item = m_state->getLeaves ().find (forwarderInfo);
+ SeqNo seqNo (0);
+ if (item != m_state->getLeaves ().end ())
+ {
+ seqNo = (*item)->getSeq ();
+ ++seqNo;
+ }
+ m_state->update (forwarderInfo, seqNo);
diff = make_shared<DiffState>();
diff->remove(info);
- diff->update(forwarderInfo, oldSeq);
+ diff->update(forwarderInfo, seqNo);
insertToDiffLog (diff);
}