From 8a08acce376cb37345f0f45f127c18d3189fc951 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Tue, 25 Aug 2015 17:43:35 -0400 Subject: [PATCH] common/hobject_t: fix is_temp() off-by-one pool 0 -> -2 for its temp objects. Fixes: #12785 Signed-off-by: Sage Weil --- src/common/hobject.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.47.3