]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
osd/OSD.h: fix try_stop_deletion 274/head
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Sat, 11 May 2013 17:51:02 +0000 (19:51 +0200)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Sat, 11 May 2013 17:58:43 +0000 (19:58 +0200)
Fix try_stop_deletion(): The comment above the while loop says "If we are
in DELETING_DIR or DELETED_DIR", but the while loop checks for DELETING_DIR
twice. Change one check to DELETED_DIR otherwise on state get missed.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
src/osd/OSD.h

index d20c9b1268e0254f13922996fe0efad79d0dba21..905af9cfb2a3bd26f0669e51095f971c666569d4 100644 (file)
@@ -216,7 +216,7 @@ public:
      * state, because this might block the caller behind entire pg
      * removals.
      */
-    while (status == DELETING_DIR || status == DELETING_DIR)
+    while (status == DELETING_DIR || status == DELETED_DIR)
       cond.Wait(lock);
     return status != DELETED_DIR;
   } ///< @return true if we don't need to recreate the collection