diff options
author | Tofu Buzzard <no-email> | 2011-02-01 09:44:47 -0800 |
---|---|---|
committer | Tofu Buzzard <no-email> | 2011-02-01 09:44:47 -0800 |
commit | 7ddf7e17c01242901cef9219e27077e0d1243997 (patch) | |
tree | 3e256a2e6af59ebed663e8d5bdd31f3b73e1e02d /indra/llvfs | |
parent | 622c5f11306c88055fc1be0a290041ef7e3394a4 (diff) | |
parent | c7d0fab7b9279c5f6a57ee3de103b8fb142fb747 (diff) |
merge
Diffstat (limited to 'indra/llvfs')
-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++; } |