summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/prserv/db.py
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/db.py
parent99c9b337ac0c33870bf0240d2b348047a712a83c (diff)
downloadpoky-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/db.py')
-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):
220 raise e 220 raise e
221 self.connection=sqlite3.connect(self.filename, isolation_level="EXCLUSIVE", check_same_thread = False) 221 self.connection=sqlite3.connect(self.filename, isolation_level="EXCLUSIVE", check_same_thread = False)
222 self.connection.row_factory=sqlite3.Row 222 self.connection.row_factory=sqlite3.Row
223 self.connection.execute("pragma synchronous = off;")
223 self._tables={} 224 self._tables={}
224 225
225 def __del__(self): 226 def __del__(self):