summaryrefslogtreecommitdiff
path: root/indra/llvfs
diff options
context:
space:
mode:
authorXiaohong Bao <bao@lindenlab.com>2011-01-24 15:51:33 -0700
committerXiaohong Bao <bao@lindenlab.com>2011-01-24 15:51:33 -0700
commiteec332cfbe200f585d8fd382867b90d89d1ab5c0 (patch)
tree84ddc599c33a916a8996ca05ef36ecd41d119311 /indra/llvfs
parentde83bd5c6b1e103993ba74321d600f1c413785ce (diff)
parent2a14079563ce323452a8088cca994e4f5c0edcd4 (diff)
Automated merge with http://hg.secondlife.com/viewer-development
Diffstat (limited to 'indra/llvfs')
-rw-r--r--indra/llvfs/lldir.cpp13
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++;
}