]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
bluestore/BitAllocator: use debug_assert instead of assert
authorxie xingguo <xie.xingguo@zte.com.cn>
Sat, 4 Jun 2016 03:16:48 +0000 (11:16 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Sat, 4 Jun 2016 03:49:39 +0000 (11:49 +0800)
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
src/os/bluestore/BitAllocator.cc

index d87cf9c5b9f9c49f6577ca28b6475ecead9659e2..61c8d3ee098156e7a988ce6c2a28b59470a2fb6a 100644 (file)
@@ -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(