From 0304d92a9727ec9f8ea30f0cacaa29a66683bdab Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Sat, 3 May 2014 11:18:41 +0100 Subject: bitbake: prserv/db: Avoid fsync() calls If the power were to fail, it doesn't matter to us much if the data makes it to disk or not, we'd have other problems. However an fsync() call on a multi build autobuilder is painful so lets avoid them. (Bitbake rev: 4eb2dc8048e2722d64d589f453df1ce6262c71b8) Signed-off-by: Richard Purdie --- bitbake/lib/prserv/db.py | 1 + 1 file changed, 1 insertion(+) (limited to 'bitbake/lib/prserv') diff --git a/bitbake/lib/prserv/db.py b/bitbake/lib/prserv/db.py index 86eafe338c..49f36da1ad 100644 --- a/bitbake/lib/prserv/db.py +++ b/bitbake/lib/prserv/db.py @@ -220,6 +220,7 @@ class PRData(object): raise e 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._tables={} def __del__(self): -- cgit 1.2.3-korg