diff options
author | Danny Al-Gaaf <danny.al-gaaf@bisect.de> | 2013-05-11 19:51:02 +0200 |
---|---|---|
committer | Danny Al-Gaaf <danny.al-gaaf@bisect.de> | 2013-05-11 19:58:43 +0200 |
commit | 459c7311450633738e9137b164fb5fcea524e93d (patch) | |
tree | 5538a68a7f813f50a280fc600e22761aa7e7a8e4 /src/osd/OSD.h | |
parent | b5e9b56fc93dd4896c802aff1096430b523ad84c (diff) | |
download | ceph-459c7311450633738e9137b164fb5fcea524e93d.tar.gz |
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 <danny.al-gaaf@bisect.de>
Diffstat (limited to 'src/osd/OSD.h')
-rw-r--r-- | src/osd/OSD.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/osd/OSD.h b/src/osd/OSD.h index d20c9b1268e..905af9cfb2a 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 |