diff options
author | Joshua Lock <josh@linux.intel.com> | 2011-11-08 12:37:57 -0800 |
---|---|---|
committer | Joshua Lock <josh@linux.intel.com> | 2011-11-14 18:02:36 -0800 |
commit | 4dab699e96ef9b21b14d99761a0353d8e589a4fa (patch) | |
tree | fccb0b1d0660432e6092dc471f1f54ef48d9f59f /bitbake/lib/bb/persist_data.py | |
parent | 1ca9ca2c7d2f4a41ba517f2b832946ee7ab581ce (diff) | |
download | poky-4dab699e96ef9b21b14d99761a0353d8e589a4fa.tar.gz |
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>
Diffstat (limited to 'bitbake/lib/bb/persist_data.py')
-rw-r--r-- | bitbake/lib/bb/persist_data.py | 2 |
1 files changed, 1 insertions, 1 deletions
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): | |||
112 | bb.utils.mkdirhier(os.path.dirname(filename)) | 112 | bb.utils.mkdirhier(os.path.dirname(filename)) |
113 | 113 | ||
114 | self.filename = filename | 114 | self.filename = filename |
115 | self.connection = sqlite3.connect(filename, timeout=5, | 115 | self.connection = sqlite3.connect(filename, timeout=30, |
116 | isolation_level=None) | 116 | isolation_level=None) |
117 | self.cursor = self.connection.cursor() | 117 | self.cursor = self.connection.cursor() |
118 | self._tables = {} | 118 | self._tables = {} |