Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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...
commit c0c5204d0ef08f1053043cf426c4f025d5408807 1 parent 5516ee0
@ssinger ssinger authored
Showing with 11 additions and 1 deletion.
  1. +3 −1 RELEASE
  2. +8 −0 src/slonik/slonik.c
View
4 RELEASE
@@ -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
8 src/slonik/slonik.c
@@ -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);
Please sign in to comment.
Something went wrong with that request. Please try again.