From: Gabriel BenHanokh Date: Wed, 24 Nov 2021 10:02:01 +0000 (+0200) Subject: Bug-Fix for PR-42762 X-Git-Tag: v17.1.0~321^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=70f382fbe861a67cbeb28bc422669b162edbe819;p=ceph.git Bug-Fix for PR-42762 Use the function local allocator instead of the global shared-allocator Signed-off-by: Gabriel Benhanokh --- diff --git a/src/os/bluestore/BlueStore.cc b/src/os/bluestore/BlueStore.cc index fae749da817b..c53223966664 100644 --- a/src/os/bluestore/BlueStore.cc +++ b/src/os/bluestore/BlueStore.cc @@ -18674,7 +18674,7 @@ int BlueStore::add_existing_bluefs_allocation(Allocator* allocator, read_alloc_s } for (auto itr = bluefs_extents.begin(); itr != bluefs_extents.end(); extent_count++, itr++) { //dout(5) << "BlueFS[" << extent_count << "] <" << itr.get_start() << "," << itr.get_len() << ">" << dendl; - shared_alloc.a->init_rm_free(itr.get_start(), itr.get_len()); + allocator->init_rm_free(itr.get_start(), itr.get_len()); stats.extent_count++; } }