diff options
author | Dave SIMmONs <simon@lindenlab.com> | 2011-02-24 17:42:16 -0800 |
---|---|---|
committer | Dave SIMmONs <simon@lindenlab.com> | 2011-02-24 17:42:16 -0800 |
commit | 52ae219d502d182a7e6c000070e5935b923f30e7 (patch) | |
tree | 556151d5097feb5ae079786044188cb0d0400d16 /indra/llvfs/lldir.cpp | |
parent | 1c8c28a8de73228c06fdf2d84045433c7231cd19 (diff) | |
parent | 609c70eb5a48389bef1ad33358774764ee9615e2 (diff) |
Merge again lindenlab/viewer-development
Diffstat (limited to 'indra/llvfs/lldir.cpp')
-rw-r--r-- | indra/llvfs/lldir.cpp | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/indra/llvfs/lldir.cpp b/indra/llvfs/lldir.cpp index 64556bcb4c..cb898e385f 100644 --- a/indra/llvfs/lldir.cpp +++ b/indra/llvfs/lldir.cpp @@ -101,10 +101,18 @@ S32 LLDir::deleteFilesInDir(const std::string &dirname, const std::string &mask) { if (0 != LLFile::remove(fullpath)) { + retry_count++; result = errno; llwarns << "Problem removing " << fullpath << " - errorcode: " << result << " attempt " << retry_count << llendl; - ms_sleep(1000); + + if(retry_count >= 5) + { + llwarns << "Failed to remove " << fullpath << llendl ; + return count ; + } + + ms_sleep(100); } else { @@ -113,8 +121,7 @@ S32 LLDir::deleteFilesInDir(const std::string &dirname, const std::string &mask) llwarns << "Successfully removed " << fullpath << llendl; } break; - } - retry_count++; + } } count++; } |