From: Steve Singer Date: Mon, 4 Jul 2011 17:25:41 +0000 (-0400) Subject: Fix for bug 223. X-Git-Tag: REL_2_1_0_B3~2^2~7 X-Git-Url: http://git.postgresql.org/gitweb/static/connections.php?a=commitdiff_plain;h=dc61270672c3fbb2c49e8b0b1894b7bf72b02d6d;p=slony1-engine.git Fix for bug 223. Have slonik clear out the last saved event id for a node that it just uninstalled. --- diff --git a/RELEASE b/RELEASE index 9fe09599..db725ef1 100644 --- a/RELEASE +++ b/RELEASE @@ -23,7 +23,11 @@ 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: diff --git a/src/slonik/slonik.c b/src/slonik/slonik.c index e0812e5c..67146003 100644 --- a/src/slonik/slonik.c +++ b/src/slonik/slonik.c @@ -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);