persist_data: loop on database lock for table creation
(Bitbake rev: d93fcbd64ab5d806288424170f55323b4297e7d6) Signed-off-by: Chris Larson <chris_larson@mentor.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
4af3191331
commit
1385162cd2
|
@ -47,7 +47,7 @@ class SQLTable(collections.MutableMapping):
|
|||
self.cursor = cursor
|
||||
self.table = table
|
||||
|
||||
cursor.execute("CREATE TABLE IF NOT EXISTS %s(key TEXT, value TEXT);"
|
||||
self._execute("CREATE TABLE IF NOT EXISTS %s(key TEXT, value TEXT);"
|
||||
% table)
|
||||
|
||||
def _execute(self, *query):
|
||||
|
|
Loading…
Reference in New Issue