VWR-25862 Fix viewer caches not being cleared.
Review Request #315 - Created May 27, 2011 and submitted
Log Linden | Reviewers | ||
viewer | |||
vwr-25681, vwr-25862 | |||
None | viewer-development |
This is a patch to fix the issues with clearing viewer caches documented in VWR-25862. I removed the leading delimiter in the place where each of the three caches are cleared. I also removed the mac specific deleteFilesInDir() method, which should have been removed for STORM-477. I removed unneeded calls to getDirDelimiter() in llvocache.cpp.
Test plan: https://jira.secondlife.com/browse/VWR-25862?#comment-262800 I built and tested on Mac, Windows and Linux and saw the correct behavior when clicking the clear history button and the move cache button.
Posted (May 27, 2011, 1:51 p.m.)
agree, work on linux (cannot try other OS) imho linux side is a "ship it" (i don't flag it bc wait somebody reviw on other OS)
looks good to me.
Posted (June 6, 2011, 8:37 a.m.)
-
indra/newview/llvocache.cpp (Diff revision 2) -
This patch removes (everywhere, not just here) the delimiter in front of 'mask' passed to deleteFilesInDir. deleteFilesInDir does nothing with mask but pass it to LLDirIterator. Apparently, the introduction of LLDirIterator (new in Viewer 2) requires mask to NOT start with a delimiter. However, you fail to correct this consistently; for example, in LLAppViewer::migrateCacheDirectory we have the following code: std::string mask = delimiter + "*.*"; LLDirIterator iter(old_cache_dir, mask); Can you explain that works (does it?) and the code that you changed didn't work?
Other reviews