From 459c7311450633738e9137b164fb5fcea524e93d Mon Sep 17 00:00:00 2001 From: Danny Al-Gaaf Date: Sat, 11 May 2013 19:51:02 +0200 Subject: [PATCH] osd/OSD.h: fix try_stop_deletion 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 --- src/osd/OSD.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osd/OSD.h b/src/osd/OSD.h index d20c9b1268e0..905af9cfb2a3 100644 --- a/src/osd/OSD.h +++ b/src/osd/OSD.h @@ -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 -- 2.47.3