Fix for bug 223.
authorSteve Singer <ssinger@ca.afilias.info>
Mon, 4 Jul 2011 17:25:41 +0000 (13:25 -0400)
committerSteve Singer <ssinger@ca.afilias.info>
Thu, 7 Jul 2011 19:33:31 +0000 (15:33 -0400)
Have slonik clear out the last saved event id
for a node that it just uninstalled.

RELEASE
src/slonik/slonik.c

diff --git a/RELEASE b/RELEASE
index 9fe09599711ad39cb37f59b3b487fab26f8903dd..db725ef1ef2ba11529ce198106ee2d80a14eb415 100644 (file)
--- a/RELEASE
+++ b/RELEASE
               subscriber passed parameters in the wrong order to the
               stored procedure.
 
-- Bug #220 :: altperl code misspelled "PKEYDTABLES"
+- Bug #223 :: Clear out the last saved event number when uninstalling
+              a node.  This prevents slonik from waiting for a node it just
+              uninstalled.
+
+- Bug #224 :: altperl code misspelled "PKEYDTABLES"
 
 *** Some items without bug numbers:
 
index e0812e5c41d3425a39966d1a68545a80e2331a1c..67146003f221371cb94272bc843e88159804597f 100644 (file)
@@ -3207,6 +3207,14 @@ slonik_uninstall_node(SlonikStmt_uninstall_node * stmt)
                dstring_free(&query);
                return -1;
        }
+       
+       /**
+        * if we have a conninfo for the node being uninstalled
+        * we want to clear out the last seqid.
+        */
+       if(adminfo1 != NULL) {
+         adminfo1->last_event=-1;
+       }
 
        db_disconnect((SlonikStmt *) stmt, adminfo1);