diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-05-03 11:18:41 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-05-03 11:24:48 +0100 |
commit | 0304d92a9727ec9f8ea30f0cacaa29a66683bdab (patch) | |
tree | 0ff41be6d0cfd039e8c248b547ccb742e7d31124 /bitbake/lib/prserv | |
parent | 99c9b337ac0c33870bf0240d2b348047a712a83c (diff) | |
download | poky-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.py | 1 |
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): |