Skip to content

Commit

Permalink
os/bluestore: switch to alloc_dbg_assert in BmapEntityListIter::next().
Browse files Browse the repository at this point in the history
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
  • Loading branch information
rzarzynski committed Mar 2, 2017
1 parent a4a9d19 commit fab7d54
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/os/bluestore/BitAllocator.h
Expand Up @@ -331,7 +331,10 @@ class BmapEntityListIter {
*/
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);
}

Expand Down

0 comments on commit fab7d54

Please sign in to comment.