]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
os/bluestore: switch to alloc_dbg_assert in BmapEntityListIter::next(). 13736/head
authorRadoslaw Zarzynski <rzarzynski@mirantis.com>
Thu, 2 Mar 2017 11:05:37 +0000 (12:05 +0100)
committerRadoslaw Zarzynski <rzarzynski@mirantis.com>
Thu, 2 Mar 2017 11:05:37 +0000 (12:05 +0100)
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
src/os/bluestore/BitAllocator.h

index 43570d24b8c6934dbdd43e393f73199e45020646..6a5e839fbf24e4b29ef6b7e8ab1d7b4c49b1f000 100644 (file)
@@ -331,7 +331,10 @@ public:
        */
       return NULL;
     }
-    alloc_assert(cur_idx < m_list->size());
+
+    /* This method should be *really* fast as it's being executed over
+     * and over during traversal of allocators indexes. */
+    alloc_dbg_assert(cur_idx < m_list->size());
     return m_list->get_nth_item(cur_idx);
   }