Permalink
Browse files

MB-6068: ignore invalid sqlite kv tables

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...
1 parent 6852d2e commit fa04b9faf00bce88efaaac3c804daec6638f75db @steveyen steveyen committed Jul 31, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 pump_mbf.py
View
@@ -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

0 comments on commit fa04b9f

Please sign in to comment.