From: Radoslaw Zarzynski Date: Thu, 2 Mar 2017 11:05:37 +0000 (+0100) Subject: os/bluestore: switch to alloc_dbg_assert in BmapEntityListIter::next(). X-Git-Tag: v12.0.1~177^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F13736%2Fhead;p=ceph.git os/bluestore: switch to alloc_dbg_assert in BmapEntityListIter::next(). Signed-off-by: Radoslaw Zarzynski --- diff --git a/src/os/bluestore/BitAllocator.h b/src/os/bluestore/BitAllocator.h index 43570d24b8c6..6a5e839fbf24 100644 --- a/src/os/bluestore/BitAllocator.h +++ b/src/os/bluestore/BitAllocator.h @@ -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); }