diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-07-24 14:12:05 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-08-06 11:21:07 +0100 |
commit | ee3fc6030e653f3244b065fc89aafd2a7c36ae04 (patch) | |
tree | 1b346c9cf5d4cd872a1dc5726fe847f5a249d687 /lib | |
parent | 7ae56a4d4fcf66e1da1581c70f75e30bfdf3ed83 (diff) | |
download | bitbake-ee3fc6030e653f3244b065fc89aafd2a7c36ae04.tar.gz |
prserv: Use a memory journal
We've seen PR Server timeouts on the autobuilder, this is likely from the
journal being blocked on disk IO generated by the build.
Since we're running with synchronous off, we may as well put the journal
into memory and avoid any IO related stalls.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/prserv/db.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/prserv/db.py b/lib/prserv/db.py index d6188a679..117d8c052 100644 --- a/lib/prserv/db.py +++ b/lib/prserv/db.py @@ -257,7 +257,7 @@ class PRData(object): self.connection=sqlite3.connect(self.filename, isolation_level="EXCLUSIVE", check_same_thread = False) self.connection.row_factory=sqlite3.Row self.connection.execute("pragma synchronous = off;") - self.connection.execute("PRAGMA journal_mode = WAL;") + self.connection.execute("PRAGMA journal_mode = MEMORY;") self._tables={} def disconnect(self): |