]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
os/BlueStore: NCB fix for SimpleBitmap boundary check 45733/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 14:51:07 +0000 (17:51 +0300)
commit7dfa20863090d5eb58c798b6903386dcce6a52f8
treef6cf6d2ac9ada50a0ee4a3d2f886374a4ad57e8c
parentd191b08bb674c91902ddb713859fec358e14a674
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>
src/os/bluestore/simple_bitmap.cc
src/os/bluestore/simple_bitmap.h
src/test/objectstore/test_bluestore_types.cc