Skip to content

Commit

Permalink
MB-6068: ignore invalid sqlite kv tables
Browse files Browse the repository at this point in the history
Change-Id: I0fe78a7127f1334ab66d4309eee83394ca7cd09e
Reviewed-on: http://review.couchbase.org/19109
Reviewed-by: Pavel Paulau <pavel.paulau@gmail.com>
Tested-by: Steve Yen <steve.yen@gmail.com>
  • Loading branch information
steveyen committed Jul 31, 2012
1 parent 6852d2e commit fa04b9f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pump_mbf.py
Expand Up @@ -243,8 +243,8 @@ def connect_db(self):
table_dbs.setdefault(table_name, []).append(db_name)
cursor.close()

if not [True for table_name in table_dbs.keys()
if 'kv_' in table_name]:
if not filter(lambda table_name: table_name.startswith("kv_"),
table_dbs):
db.close()
return "error: no kv data was found;" + \
" check if db files are correct", None, None, None
Expand Down

0 comments on commit fa04b9f

Please sign in to comment.