]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
os/BlueStore: NCB fixes recovery code with shared blobs 44918/head
authorGabriel BenHanokh <benhanokh@gmail.com>
Wed, 12 Jan 2022 12:48:27 +0000 (14:48 +0200)
committerGabriel BenHanokh <benhanokh@gmail.com>
Mon, 7 Feb 2022 09:51:42 +0000 (11:51 +0200)
commit38df434a5df562e5655d1725597aad7606dbe44b
tree3d614fa7c91f374834512ca31b872b0338622f54
parenta94e94ded2f1883c7871427d720d9cb6269dc9df
os/BlueStore: NCB fixes recovery code with shared blobs

Replaces the BitmapAllocator used by NCB Recovery code with a dedicated SimpleBitmap.
The SimpleBitmap allows for bits to be set multiple times without any adverse effect.
This is needed beacuse shared-blobs will report the same allocation multiple times.

Fixes: https://tracker.ceph.com/issues/53678
Signed-off-by: Gabriel Benhanokh <gbenhano@redhat.com>
(cherry picked from commit 8868894491c5e4df6d77fb78ed22702a493fe4f8)
src/crimson/os/alienstore/CMakeLists.txt
src/os/CMakeLists.txt
src/os/bluestore/BlueStore.cc
src/os/bluestore/BlueStore.h
src/os/bluestore/bluestore_tool.cc
src/os/bluestore/simple_bitmap.cc [new file with mode: 0644]
src/os/bluestore/simple_bitmap.h [new file with mode: 0644]
src/test/objectstore/test_bluestore_types.cc