summaryrefslogtreecommitdiffstats
path: root/lib/prserv
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2014-05-03 11:18:41 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-05-03 11:24:39 +0100
commit4eb2dc8048e2722d64d589f453df1ce6262c71b8 (patch)
treef2aae9a885684cd42f5748125327956a5b07fe40 /lib/prserv
parentec28256ac2a30f047585e8f61200d764bc295ded (diff)
downloadbitbake-4eb2dc8048e2722d64d589f453df1ce6262c71b8.tar.gz
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. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/prserv')
-rw-r--r--lib/prserv/db.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/prserv/db.py b/lib/prserv/db.py
index 86eafe338..49f36da1a 100644
--- a/lib/prserv/db.py
+++ b/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):