From: Sage Weil Date: Tue, 25 Aug 2015 21:43:35 +0000 (-0400) Subject: common/hobject_t: fix is_temp() off-by-one X-Git-Tag: v9.1.0~275^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=8a08acce376cb37345f0f45f127c18d3189fc951;p=ceph.git common/hobject_t: fix is_temp() off-by-one pool 0 -> -2 for its temp objects. Fixes: #12785 Signed-off-by: Sage Weil --- diff --git a/src/common/hobject.h b/src/common/hobject.h index e92cc6e182dd..469875651555 100644 --- a/src/common/hobject.h +++ b/src/common/hobject.h @@ -82,7 +82,7 @@ public: } bool is_temp() const { - return pool < POOL_TEMP_START && pool != INT64_MIN; + return pool <= POOL_TEMP_START && pool != INT64_MIN; } bool is_meta() const { return pool == POOL_META;