bitbake: prserv/db: Avoid fsync() calls
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 3 May 2014 10:18:41 +0000 (11:18 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 3 May 2014 10:24:48 +0000 (11:24 +0100)
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>
bitbake/lib/prserv/db.py

index 86eafe3..49f36da 100644 (file)
@@ -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):