mirror of
git://git.yoctoproject.org/poky.git
synced 2025-07-19 12:59:02 +02:00
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:
parent
1ca9ca2c7d
commit
4dab699e96
|
@ -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 = {}
|
||||
|
|
Loading…
Reference in New Issue
Block a user