From cfb16c4abdaa922ed3e480f30e60cb8429013476 Mon Sep 17 00:00:00 2001 From: xie xingguo Date: Sat, 4 Jun 2016 11:46:00 +0800 Subject: [PATCH] bluestore/BitAllocator: fix assert 0 is valid index, so this assert could fire. Signed-off-by: xie xingguo --- src/os/bluestore/BitAllocator.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/os/bluestore/BitAllocator.h b/src/os/bluestore/BitAllocator.h index f05f8868d85..ada3f1f1f9b 100644 --- a/src/os/bluestore/BitAllocator.h +++ b/src/os/bluestore/BitAllocator.h @@ -126,7 +126,7 @@ public: } void decr_idx() { m_cur_idx--; - debug_assert(m_cur_idx > 0); + debug_assert(m_cur_idx >= 0); } }; -- 2.47.3