]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
BlueStore/StupidAllocator: fix assert 7293/head
authorxie xingguo <xie.xingguo@zte.com.cn>
Wed, 20 Jan 2016 09:28:02 +0000 (17:28 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Wed, 20 Jan 2016 09:28:02 +0000 (17:28 +0800)
Fixes: #14436
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
src/os/bluestore/StupidAllocator.cc [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index d96e945..e129d78
@@ -68,7 +68,7 @@ void StupidAllocator::unreserve(uint64_t unused)
   Mutex::Locker l(lock);
   dout(10) << __func__ << " unused " << unused << " num_free " << num_free
           << " num_reserved " << num_reserved << dendl;
-  assert((int64_t)unused >= num_reserved);
+  assert(num_reserved >= (int64_t)unused);
   num_reserved -= unused;
 }