]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
* fixed looping bug with clean_dir (called after trace playback)
authorsageweil <sageweil@29311d96-e01e-0410-9327-a35deaab8ce9>
Thu, 15 Mar 2007 20:59:21 +0000 (20:59 +0000)
committersageweil <sageweil@29311d96-e01e-0410-9327-a35deaab8ce9>
Thu, 15 Mar 2007 20:59:21 +0000 (20:59 +0000)
git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@1242 29311d96-e01e-0410-9327-a35deaab8ce9

trunk/ceph/client/SyntheticClient.cc

index ba9018bbf709b917004fb7c132ff9be0fd010675..6f0ad60dc88ab37d7e9dd6fb69db055929a86cad 100644 (file)
@@ -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;