From 4dab699e96ef9b21b14d99761a0353d8e589a4fa Mon Sep 17 00:00:00 2001 From: Joshua Lock Date: Tue, 8 Nov 2011 12:37:57 -0800 Subject: 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 --- bitbake/lib/bb/persist_data.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitbake/lib/bb/persist_data.py b/bitbake/lib/bb/persist_data.py index da05752311..8c5c1d9d7b 100644 --- a/bitbake/lib/bb/persist_data.py +++ b/bitbake/lib/bb/persist_data.py @@ -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 = {} -- cgit v1.2.3-54-g00ecf