diff options
author | Logan Dethrow <log@lindenlab.com> | 2011-05-25 15:44:03 -0400 |
---|---|---|
committer | Logan Dethrow <log@lindenlab.com> | 2011-05-25 15:44:03 -0400 |
commit | 57bdcd6bda363fc8df21563597419f12c87f7b15 (patch) | |
tree | 86dbe062ca50f773b21e033b24c6dd18c7eae47d /indra/newview/llvocache.cpp | |
parent | 8d5a9f9d2d905734c030ce0c778ce3a95c53b6b2 (diff) |
VWR-25862 Potential fix for caches not clearing when they are supposed to.
* Removed leading delimiter from filename mask in all calls to
LLDir::deleteFilesInDir() that are related to the viewer asset caches
(texture, VFS, and VO).
Diffstat (limited to 'indra/newview/llvocache.cpp')
-rw-r--r-- | indra/newview/llvocache.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/indra/newview/llvocache.cpp b/indra/newview/llvocache.cpp index c605ddb1c8..99035244a2 100644 --- a/indra/newview/llvocache.cpp +++ b/indra/newview/llvocache.cpp @@ -342,7 +342,7 @@ void LLVOCache::removeCache(ELLPath location) llinfos << "about to remove the object cache due to settings." << llendl ; std::string delem = gDirUtilp->getDirDelimiter(); - std::string mask = delem + "*"; + std::string mask = "*"; std::string cache_dir = gDirUtilp->getExpandedFilename(location, object_cache_dirname); llinfos << "Removing cache at " << cache_dir << llendl; gDirUtilp->deleteFilesInDir(cache_dir, mask); //delete all files @@ -364,7 +364,7 @@ void LLVOCache::removeCache() llinfos << "about to remove the object cache due to some error." << llendl ; std::string delem = gDirUtilp->getDirDelimiter(); - std::string mask = delem + "*"; + std::string mask = "*"; llinfos << "Removing cache at " << mObjectCacheDirName << llendl; gDirUtilp->deleteFilesInDir(mObjectCacheDirName, mask); |