Commit 1ba57f98 authored by Rich Prohaska's avatar Rich Prohaska Committed by Yoni Fogel

#3845 get recover-loader-test working on amazon with broken readdir refs[t:3845]

git-svn-id: file:///svn/toku/tokudb@33717 c7de825b-a66e-492c-adef-691d508d4ae1
parent 69b8aac7
......@@ -81,11 +81,9 @@ count_temp(char * dirname) {
DIR * dir = opendir(dirname);
struct dirent *ent;
while ((ent=readdir(dir))) {
if (ent->d_type==DT_REG && strncmp(ent->d_name, loader_temp_prefix, 6)==0) {
while ((ent=readdir(dir)))
if ((ent->d_type == DT_UNKNOWN || ent->d_type == DT_REG) && strncmp(ent->d_name, loader_temp_prefix, 6) == 0)
n++;
}
}
closedir(dir);
return n;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment