summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarko Kreen2012-05-30 12:46:31 +0000
committerMarko Kreen2012-05-30 12:46:31 +0000
commit234ab3bfa0a290a34364f7af9c329b399a97f8fe (patch)
tree5fe2a9fdecab412d2b38775822d4bef560bd314f
parentdbe00ab08dd74127552ec97001460948452aaf45 (diff)
londiste add-table --expect-sync: don't check table existance on provider
-rw-r--r--python/londiste/setup.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/londiste/setup.py b/python/londiste/setup.py
index d5e6d141..6976f60a 100644
--- a/python/londiste/setup.py
+++ b/python/londiste/setup.py
@@ -133,7 +133,7 @@ class LondisteSetup(CascadeAdmin):
args = self.expand_arg_list(dst_db, 'r', False, args, needs_tbl)
# dont check for exist/not here (root handling)
- if not self.is_root():
+ if not self.is_root() and not self.options.expect_sync:
problems = False
for tbl in args:
tbl = skytools.fq_name(tbl)
@@ -183,7 +183,7 @@ class LondisteSetup(CascadeAdmin):
src_dest_table = src_tbls[tbl]['dest_table']
if not skytools.exists_table(src_curs, src_dest_table):
# table not present on provider - nowhere to get the DDL from
- self.log.warning('Table %s missing on provider, skipping' % desc)
+ self.log.warning('Table %s missing on provider, cannot create, skipping' % desc)
return
schema = skytools.fq_name_parts(dest_table)[0]
if not skytools.exists_schema(dst_curs, schema):