aboutsummaryrefslogtreecommitdiffstats
path: root/bitbake/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:48 +0100
commit0304d92a9727ec9f8ea30f0cacaa29a66683bdab (patch)
tree0ff41be6d0cfd039e8c248b547ccb742e7d31124 /bitbake/lib/prserv
parent99c9b337ac0c33870bf0240d2b348047a712a83c (diff)
downloadopenembedded-core-contrib-0304d92a9727ec9f8ea30f0cacaa29a66683bdab.tar.gz
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 <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/prserv')
-rw-r--r--bitbake/lib/prserv/db.py1
1 files changed, 1 insertions, 0 deletions
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):