]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
include/mempool: fix allocate() debug_mode check
authorSage Weil <sage@redhat.com>
Fri, 11 Nov 2016 19:59:30 +0000 (14:59 -0500)
committerSage Weil <sage@redhat.com>
Fri, 11 Nov 2016 19:59:53 +0000 (14:59 -0500)
Signed-off-by: Sage Weil <sage@redhat.com>
src/include/mempool.h

index da017bb9143f70aecb08358664ddaecda259612f..9e18a0f603d189193f40777e0fa586a3ca0f7074 100644 (file)
@@ -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<T*>(new char[total]);