From: Adam Kupczyk Date: Fri, 2 Feb 2024 12:22:15 +0000 (+0000) Subject: os/bluestore: Fix bdev_label_main_try_reserve X-Git-Tag: v19.2.1~271^2~26 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=17fcb9a92f8b8bc7161dc6966ab7a81cb26c6547;p=ceph.git os/bluestore: Fix bdev_label_main_try_reserve It added valid_locations which it should not been doing. Signed-off-by: Adam Kupczyk (cherry picked from commit c7b4bcbaec6f6c478ae91f5b32c626d98e1e2635) --- diff --git a/src/os/bluestore/BlueStore.cc b/src/os/bluestore/BlueStore.cc index f2349c3f32e..ff2fe17e88f 100644 --- a/src/os/bluestore/BlueStore.cc +++ b/src/os/bluestore/BlueStore.cc @@ -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++) {