From 6bdbbad054f1fe38b44f94374e449facce0d814a Mon Sep 17 00:00:00 2001 From: Marko Kreen Date: Mon, 8 Jun 2009 17:27:49 +0300 Subject: [PATCH] londiste: make --expect-sync work --- python/londiste/setup.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/python/londiste/setup.py b/python/londiste/setup.py index ae8567cd..58419919 100644 --- a/python/londiste/setup.py +++ b/python/londiste/setup.py @@ -149,8 +149,12 @@ class LondisteSetup(CascadeAdmin): self.log.warning('Table "%s" missing on subscriber, use --create if necessary' % tbl) return + # actual table registration q = "select * from londiste.local_add_table(%s, %s)" self.exec_cmd(dst_curs, q, [self.set_name, tbl]) + if self.options.expect_sync: + q = "select * from londiste.set_table_state(%s, %s, NULL, 'ok')" + self.exec_cmd(dst_curs, q, [self.set_name, tbl]) dst_db.commit() def sync_table_list(self, dst_curs, src_tbls, dst_tbls): -- 2.39.5