]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
os/bluestore/BitMapAllocator: fix duplicated assert
authorxie xingguo <xie.xingguo@zte.com.cn>
Tue, 17 May 2016 11:21:14 +0000 (19:21 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Tue, 17 May 2016 11:21:14 +0000 (19:21 +0800)
Shall insert length is block-size aligned instead here.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
src/os/bluestore/BitMapAllocator.cc

index 636405cef6aca372163988085d0dded7cae457c7..22cd3a5217d23406ca0f9a5a1ffc7848533e5d29 100644 (file)
@@ -172,7 +172,7 @@ void BitMapAllocator::init_rm_free(uint64_t offset, uint64_t length)
     " offset " << offset << " length " << length << dendl;
 
   assert(!(offset % m_block_size));
-  assert(!(offset % m_block_size));
+  assert(!(length % m_block_size));
 
   int64_t first_blk = offset / m_block_size;
   int64_t count = length / m_block_size;