mirror of
https://github.com/ceph/ceph
synced 2025-01-03 09:32:43 +00:00
* fixed looping bug with clean_dir (called after trace playback)
git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@1242 29311d96-e01e-0410-9327-a35deaab8ce9
This commit is contained in:
parent
88b0b7d836
commit
df0126377f
@ -707,6 +707,8 @@ int SyntheticClient::clean_dir(string& basedir)
|
||||
for (map<string, inode_t>::iterator it = contents.begin();
|
||||
it != contents.end();
|
||||
it++) {
|
||||
if (it->first == ".") continue;
|
||||
if (it->first == "..") continue;
|
||||
string file = basedir + "/" + it->first;
|
||||
|
||||
if (time_to_stop()) break;
|
||||
|
Loading…
Reference in New Issue
Block a user