[oe-commits] [bitbake] 10/17: prserv: Use a memory journal

git at git.openembedded.org git at git.openembedded.org
Fri Aug 2 15:55:11 UTC 2019


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master-next
in repository bitbake.

commit 13322807f7f3557e6be27b7f7816a8d38d59374b
Author: Richard Purdie <richard.purdie at linuxfoundation.org>
AuthorDate: Wed Jul 24 14:12:05 2019 +0100

    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 at linuxfoundation.org>
---
 lib/prserv/db.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/prserv/db.py b/lib/prserv/db.py
index d6188a6..117d8c0 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):

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list