Opened 14 years ago
Closed 11 years ago
#15806 closed Bug (fixed)
Error in filebased cache culling
Reported by: | Owned by: | ||
---|---|---|---|
Component: | Core (Cache system) | Version: | dev |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Accepted | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Pull Requests: | How to create a pull request | ||
Description ¶
In line 115 of filebased.py we have:
try: filelist = sorted(os.listdir(self._dir)) except (IOError, OSError): return if self._cull_frequency == 0: doomed = filelist else: doomed = [os.path.join(self._dir, k) for (i, k) in enumerate(filelist) if i % self._cull_frequency == 0]
In case of _cull_frequency == 0 instead of "doomed = filelist" we should have sth like:
doomed = [os.path.join(self._dir, d) for d in filelist]
Otherwise doomed tuple will not contains absolute paths but relative.
Change History (12)
comment:1 by , 14 years ago
Easy pickings: | unset |
---|---|
Triage Stage: | Unreviewed → Accepted |
comment:2 by , 14 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
UI/UX: | unset |
by , 14 years ago
Attachment: | tests_for_15806.diff added |
---|
Regression test for filebased cache with CULL_FREQUENCY=0
comment:3 by , 14 years ago
Has patch: | set |
---|
follow-up: 5 comment:4 by , 14 years ago
Patch needs improvement: | set |
---|
Could you consolidate the tests and the fix in the same patch?
comment:5 by , 14 years ago
comment:6 by , 14 years ago
Patch needs improvement: | unset |
---|
comment:7 by , 13 years ago
Owner: | removed |
---|---|
Status: | assigned → new |
comment:8 by , 11 years ago
Has patch: | unset |
---|---|
Version: | 1.3 → master |
This is fixed by the solution to #20536.
comment:9 by , 11 years ago
Owner: | set to |
---|---|
Resolution: | → fixed |
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
See also #15825. Not exactly related, but right around in that same part of code and probably worth fixing at the same time.