From fab7d544865fe36a3114a3cd285c04d51162d2cd Mon Sep 17 00:00:00 2001 From: Radoslaw Zarzynski Date: Thu, 2 Mar 2017 12:05:37 +0100 Subject: [PATCH] os/bluestore: switch to alloc_dbg_assert in BmapEntityListIter::next(). Signed-off-by: Radoslaw Zarzynski --- src/os/bluestore/BitAllocator.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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); } -- 2.47.3