]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
os/BlueStore: NCB fix for SimpleBitmap boundary check 45738/head
authorGabriel BenHanokh <gbenhano@redhat.com>
Thu, 31 Mar 2022 11:47:59 +0000 (14:47 +0300)
committerGabriel BenHanokh <gbenhano@redhat.com>
Thu, 31 Mar 2022 18:07:19 +0000 (21:07 +0300)
commitdaaec4e2c6a0e5885a184cda1dac8cebf7b761f9
tree74ea57b4bfb498ab081ece71968122702a91d437
parent06806b4daf15629b6b20d88969fb82ca71faf71d
os/BlueStore: NCB fix for SimpleBitmap boundary check
The boundary check in SimpleBitmap is off by one causing an assert to trigger
Also fixed a bug when asking for the next clear_extent on a unaligned map when the last bits in the map were set.
Adding unit-tests
Fixes: https://tracker.ceph.com/issues/55145
Signed-off-by: Gabriel BenHanokh <gbenhano@redhat.com>
(cherry picked from commit 7dfa20863090d5eb58c798b6903386dcce6a52f8)
src/os/bluestore/simple_bitmap.cc
src/os/bluestore/simple_bitmap.h
src/test/objectstore/test_bluestore_types.cc