vardbapi: disable subprocess vdb cache updates
authorZac Medico <zmedico@gentoo.org>
Mon, 9 May 2011 04:51:47 +0000 (21:51 -0700)
committerZac Medico <zmedico@gentoo.org>
Mon, 9 May 2011 04:51:47 +0000 (21:51 -0700)
commita983fc1c83402dbfe0a423bf729c72eeb795388c
treef138333714f85912b11c4b16b254a962e24089db
parent125430a3f2879e4bc497be212a91d9dd7194d261
vardbapi: disable subprocess vdb cache updates

Since commit 7535cabdf2fab76fc55df83643157613dfd66be9,
vardbapi.flush_cache() is often called within subprocesses spawned
from MergeProcess. The _aux_cache_threshold doesn't work as designed
if the cache is flushed from a subprocess like this, can lead to the
vdb cache being flushed for every single merge. This is a waste of
disk IO, so disable vdb cache updates in subprocesses.
pym/portage/dbapi/_MergeProcess.py
pym/portage/dbapi/vartree.py