]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
os/bluestore: Fix bdev_label_main_try_reserve
authorAdam Kupczyk <akupczyk@ibm.com>
Fri, 2 Feb 2024 12:22:15 +0000 (12:22 +0000)
committerPere Diaz Bou <pere-altea@hotmail.com>
Fri, 23 Aug 2024 09:49:24 +0000 (11:49 +0200)
It added valid_locations which it should not been doing.

Signed-off-by: Adam Kupczyk <akupczyk@ibm.com>
(cherry picked from commit c7b4bcbaec6f6c478ae91f5b32c626d98e1e2635)

src/os/bluestore/BlueStore.cc

index f2349c3f32e5486c5b26b7bfb5864ef851f90507..ff2fe17e88fa4e140a28df965f411808d1164198 100644 (file)
@@ -6733,7 +6733,6 @@ void BlueStore::_main_bdev_label_try_reserve()
   alloc->foreach(look_for_bdev);
   for (auto& location : accepted_positions) {
     alloc->init_rm_free(location, lsize);
-    bdev_label_valid_locations.push_back(location);
   }
 
   for (size_t i = 0; i < candidate_positions.size(); i++) {