From 38f61af44a38b619a4b2d1918745b66f1fd6aa87 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Fri, 11 Nov 2016 14:59:30 -0500 Subject: [PATCH] include/mempool: fix allocate() debug_mode check Signed-off-by: Sage Weil --- src/include/mempool.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/include/mempool.h b/src/include/mempool.h index da017bb9143..9e18a0f603d 100644 --- a/src/include/mempool.h +++ b/src/include/mempool.h @@ -283,7 +283,7 @@ public: shard_t *shard = pool->pick_a_shard(); shard->bytes += total; shard->items += n; - if (debug_mode) { + if (type) { type->items += n; } T* r = reinterpret_cast(new char[total]); -- 2.39.5