Revision: 191
Author:
fu...@asguardnetworks.com
Date: Fri Nov 22 23:35:51 2013 UTC
Log: fixed critical bug in subscription index causing omapd to crash
when the subscription search graph shrinks
http://code.google.com/p/omapd/source/detail?r=191
Modified:
/trunk/clienthandler.cpp
=======================================
--- /trunk/clienthandler.cpp Fri Jul 12 18:54:44 2013 UTC
+++ /trunk/clienthandler.cpp Fri Nov 22 23:35:51 2013 UTC
@@ -1946,7 +1946,7 @@
// we need to remove all these IDs from the index:
QSetIterator<Id> delIt(idsWithConnectedGraphDeletes);
while(delIt.hasNext()) {
-
MapSessions::getInstance()->addToIndex(delIt.next(), sub);
+
MapSessions::getInstance()->removeFromIndex(delIt.next(), sub);
}
if
(_omapdConfig->valueFor("debug_level").value<OmapdConfig::IfmapDebugOptions>().testFlag(OmapdConfig::ShowSearchAlgorithm))
{