From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Greylist: delayed 629 seconds by postgrey-1.34 at layers.openembedded.org; Sat, 03 May 2014 10:26:20 UTC Received: from dan.rpsys.net (5751f4a1.skybroadband.com [87.81.244.161]) by mail.openembedded.org (Postfix) with ESMTP id 4CAF3605B2 for ; Sat, 3 May 2014 10:26:20 +0000 (UTC) Received: from localhost (dan.rpsys.net [127.0.0.1]) by dan.rpsys.net (8.14.4/8.14.4/Debian-2.1ubuntu4) with ESMTP id s43AIpMh006232 for ; Sat, 3 May 2014 11:18:51 +0100 X-Virus-Scanned: Debian amavisd-new at dan.rpsys.net Received: from dan.rpsys.net ([127.0.0.1]) by localhost (dan.rpsys.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id RL4LksH507wh for ; Sat, 3 May 2014 11:18:51 +0100 (BST) Received: from [192.168.3.10] (rpvlan0 [192.168.3.10]) (authenticated bits=0) by dan.rpsys.net (8.14.4/8.14.4/Debian-2.1ubuntu1) with ESMTP id s43AIk07006222 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT) for ; Sat, 3 May 2014 11:18:48 +0100 Message-ID: <1399112321.12731.101.camel@ted> From: Richard Purdie To: bitbake-devel Date: Sat, 03 May 2014 11:18:41 +0100 X-Mailer: Evolution 3.8.4-0ubuntu1 Mime-Version: 1.0 Subject: [PATCH] prserv/db: Avoid fsync() calls X-BeenThere: bitbake-devel@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussion that advance bitbake development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 May 2014 10:26:23 -0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit 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 --- diff --git a/bitbake/lib/prserv/db.py b/bitbake/lib/prserv/db.py index 86eafe3..49f36da 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):