]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
OSD: We need to wait on CLEARING_DIR, not DELETED_DIR
authorSamuel Just <sam.just@inktank.com>
Mon, 13 May 2013 16:50:14 +0000 (09:50 -0700)
committerSamuel Just <sam.just@inktank.com>
Mon, 13 May 2013 16:52:23 +0000 (09:52 -0700)
Signed-off-by: Samuel Just <sam.just@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
src/osd/OSD.h

index 905af9cfb2a3bd26f0669e51095f971c666569d4..b14592880aac824a5771508865541e969abf0a14 100644 (file)
@@ -208,15 +208,15 @@ public:
     Mutex::Locker l(lock);
     stop_deleting = true;
     /**
-     * If we are in DELETING_DIR or DELETED_DIR, there are in progress
+     * If we are in DELETING_DIR or CLEARING_DIR, there are in progress
      * operations we have to wait for before continuing on.  States
      * DELETED_DIR, QUEUED, and CANCELED either check for stop_deleting
      * prior to performing any operations or signify the end of the
      * deleting process.  We don't want to wait to leave the QUEUED
-     * state, because this might block the caller behind entire pg
-     * removals.
+     * state, because this might block the caller behind an entire pg
+     * removal.
      */
-    while (status == DELETING_DIR || status == DELETED_DIR)
+    while (status == DELETING_DIR || status == CLEARING_DIR)
       cond.Wait(lock);
     return status != DELETED_DIR;
   } ///< @return true if we don't need to recreate the collection