From: Sage Weil Date: Fri, 11 Nov 2016 19:59:30 +0000 (-0500) Subject: include/mempool: fix allocate() debug_mode check X-Git-Tag: v11.1.0~325^2~11 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=38f61af44a38b619a4b2d1918745b66f1fd6aa87;p=ceph.git include/mempool: fix allocate() debug_mode check Signed-off-by: Sage Weil --- diff --git a/src/include/mempool.h b/src/include/mempool.h index da017bb9143f..9e18a0f603d1 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]);