From: xie xingguo Date: Sat, 4 Jun 2016 03:16:48 +0000 (+0800) Subject: bluestore/BitAllocator: use debug_assert instead of assert X-Git-Tag: v11.0.0~285^2~6 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=a2d4aba02d3030ed97bfcea415e1f6d8bf581040;p=ceph.git bluestore/BitAllocator: use debug_assert instead of assert Signed-off-by: xie xingguo --- diff --git a/src/os/bluestore/BitAllocator.cc b/src/os/bluestore/BitAllocator.cc index d87cf9c5b9f..61c8d3ee098 100644 --- a/src/os/bluestore/BitAllocator.cc +++ b/src/os/bluestore/BitAllocator.cc @@ -971,7 +971,7 @@ void BitMapAreaIN::set_blocks_used_int(int64_t start_block, int64_t num_blocks) int64_t blks = num_blocks; int64_t start_blk = start_block; - assert(start_block >= 0); + debug_assert(start_block >= 0); while (blks) { child = (BitMapArea *) m_child_list->get_nth_item(