persist_data: increase the SQLite connection timeout

We're seeing OperationalErrors exceptions due to locking in some of the
pysqlite access paths (related to the initial burst of writes) on certain
setups.

This patch increases the sqlite timeout to 30, the same as in BitBake master,
to workaround this issue.

Fixes [YOCTO #1759]

Signed-off-by: Joshua Lock <josh@linux.intel.com>
This commit is contained in:
Joshua Lock 2011-11-08 12:37:57 -08:00
parent 1ca9ca2c7d
commit 4dab699e96

View File

@ -112,7 +112,7 @@ class SQLData(object):
bb.utils.mkdirhier(os.path.dirname(filename))
self.filename = filename
self.connection = sqlite3.connect(filename, timeout=5,
self.connection = sqlite3.connect(filename, timeout=30,
isolation_level=None)
self.cursor = self.connection.cursor()
self._tables = {}