Make --expect-sync use londiste.local_set_table_state()
authorMartin Pihlak <martin.pihlak@gmail.com>
Tue, 9 Jun 2009 07:48:31 +0000 (10:48 +0300)
committerMartin Pihlak <martin.pihlak@gmail.com>
Tue, 9 Jun 2009 07:48:31 +0000 (10:48 +0300)
python/londiste/setup.py

index 584199196cf29f947a0ca1c3a83dad5224eeee85..26db1b38a188017acd550c352587edef696fa337 100644 (file)
@@ -153,7 +153,7 @@ class LondisteSetup(CascadeAdmin):
         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')"
+            q = "select * from londiste.local_set_table_state(%s, %s, NULL, 'ok')"
             self.exec_cmd(dst_curs, q, [self.set_name, tbl])
         dst_db.commit()