Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 39825 - "use_cache=0" for treewalk
Summary: "use_cache=0" for treewalk
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
: 39960 (view as bug list)
Depends on:
Blocks: 39960
  Show dependency tree
 
Reported: 2004-01-29 15:53 UTC by TGL
Modified: 2004-02-08 17:55 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
use_cache.patch (use_cache.patch,9.42 KB, patch)
2004-01-29 15:54 UTC, TGL
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description TGL 2004-01-29 15:53:06 UTC
Ooops, completly forgot to submit this one before... (Carpaski, if you remember, we talk about this a few days ago on irc). 

This patch adds a use_cache parameter (enabled by default) to some functions of the from the vartree/vardbapi classes. The goal is to be able to disable "matchcache" and "cpcache" during the merging phase, because otherwise it breaks autoclean when merge time is less than one second (caches gives wrong answer in that case because mtimes don't change). Because of the mix beetween global functions and method specific to this classes, it propagate through several functions where it is not really needed in fact :/ Sorry, not found anything simpler. 

I've not propagated this parameter to the "listdir" function because i've not found evidence that this cache can also be affected by the same kind of bugs (but for a special case that i've fixed by clearing the current category listing at the end of the treewalk), but i think that in theory there may be the same problem with this one... I don't really know.

Reproducible: Always
Steps to Reproduce:
Comment 1 TGL 2004-01-29 15:54:07 UTC
Created attachment 24605 [details, diff]
use_cache.patch

Patch was against _pre20, but still apply on _pre21.
Comment 2 Nicholas Jones (RETIRED) gentoo-dev 2004-02-01 10:03:20 UTC
*** Bug 39960 has been marked as a duplicate of this bug. ***
Comment 3 Marius Mauch (RETIRED) gentoo-dev 2004-02-08 17:55:36 UTC
supposed to be fixed in 2.0.50 which is stable now. If this bug is not fixed please reopen.