]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
Bug-Fix for PR-42762 44089/head
authorGabriel BenHanokh <benhanokh@gmail.com>
Wed, 24 Nov 2021 10:02:01 +0000 (12:02 +0200)
committerGabriel BenHanokh <benhanokh@gmail.com>
Wed, 24 Nov 2021 18:54:30 +0000 (20:54 +0200)
Use the function local allocator instead of the global shared-allocator
Signed-off-by: Gabriel Benhanokh <gbenhano@redhat.com>
src/os/bluestore/BlueStore.cc

index fae749da817bd04dfca199618d0a35ace0f18be3..c53223966664f15647bce8b924fd0233a2660ba1 100644 (file)
@@ -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++;
     }
   }