]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
bitbake: persist_data: Disable enable_shared_cache
authorJoshua Watt <jpewhacker@gmail.com>
Tue, 4 Dec 2018 03:42:33 +0000 (21:42 -0600)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 7 Dec 2018 12:38:58 +0000 (12:38 +0000)
Turns off the shared cache. It isn't a significant factor in performance
(now that WAL is enabled), and is a really bad idea to have enabled in
processes that fork() (as bitbake it prone to do).

[YOCTO #13030]

(Bitbake rev: 71b427bf01374973a971c10cb64024c8ef2a11eb)

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
bitbake/lib/bb/persist_data.py

index 14927920908acbde504d8c403636814344ea7f5e..41fcf2a41c4d6a7e02e3160176a4846292c5753e 100644 (file)
@@ -37,12 +37,6 @@ if sqlversion[0] < 3 or (sqlversion[0] == 3 and sqlversion[1] < 3):
 
 
 logger = logging.getLogger("BitBake.PersistData")
-if hasattr(sqlite3, 'enable_shared_cache'):
-    try:
-        sqlite3.enable_shared_cache(True)
-    except sqlite3.OperationalError:
-        pass
-
 
 @total_ordering
 class SQLTable(collections.MutableMapping):