Skip to content

Commit

Permalink
Merge pull request #7293 from xiexingguo/xxg-wip-14436
Browse files Browse the repository at this point in the history
os/bluestore: fix assert

Reviewed-by: Sage Weil <sage@redhat.com>
  • Loading branch information
liewegas committed Jan 21, 2016
2 parents 222488a + b041b53 commit d4b8a00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/os/bluestore/StupidAllocator.cc 100644 → 100755
Expand Up @@ -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;
}

Expand Down

0 comments on commit d4b8a00

Please sign in to comment.