diff options
author | Joshua Watt <jpewhacker@gmail.com> | 2018-12-03 21:42:33 -0600 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-12-07 12:38:58 +0000 |
commit | 7509b5ee0555d1cc8729210e62e122da70b9d080 (patch) | |
tree | 69de52ee8da8a42802f11d901c6d7dabdfbac7ea /bitbake | |
parent | 09b4de78f2ae6fce4d3ef1992d185ec2aa12f475 (diff) | |
download | poky-7509b5ee0555d1cc8729210e62e122da70b9d080.tar.gz |
bitbake: persist_data: Disable enable_shared_cache
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>
Diffstat (limited to 'bitbake')
-rw-r--r-- | bitbake/lib/bb/persist_data.py | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/bitbake/lib/bb/persist_data.py b/bitbake/lib/bb/persist_data.py index 1492792090..41fcf2a41c 100644 --- a/bitbake/lib/bb/persist_data.py +++ b/bitbake/lib/bb/persist_data.py | |||
@@ -37,12 +37,6 @@ if sqlversion[0] < 3 or (sqlversion[0] == 3 and sqlversion[1] < 3): | |||
37 | 37 | ||
38 | 38 | ||
39 | logger = logging.getLogger("BitBake.PersistData") | 39 | logger = logging.getLogger("BitBake.PersistData") |
40 | if hasattr(sqlite3, 'enable_shared_cache'): | ||
41 | try: | ||
42 | sqlite3.enable_shared_cache(True) | ||
43 | except sqlite3.OperationalError: | ||
44 | pass | ||
45 | |||
46 | 40 | ||
47 | @total_ordering | 41 | @total_ordering |
48 | class SQLTable(collections.MutableMapping): | 42 | class SQLTable(collections.MutableMapping): |