Permalink
Browse files

Fix for bug 223.

Have slonik clear out the last saved event id
for a node that it just uninstalled.
  • Loading branch information...
ssinger committed Jul 4, 2011
1 parent 5516ee0 commit c0c5204d0ef08f1053043cf426c4f025d5408807
Showing with 11 additions and 1 deletion.
  1. +3 −1 RELEASE
  2. +8 −0 src/slonik/slonik.c
View
@@ -18,7 +18,9 @@
- Bug #220 :: Fix issue where changing the provider of an existing
subscriber passed parameters in the wrong order to the
stored procedure.
-
+- Bug #223 :: Clear out the last saved event number when uninstalling
+ a node. This prevents slonik from waiting for a node it just
+ uninstalled.
*** Some items without bug numbers:
- Fixed slonik memory corruption when it tries to get the last known
View
@@ -3216,6 +3216,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);

0 comments on commit c0c5204

Please sign in to comment.