diff --git a/compaction/size_tiered_compaction_strategy.cc b/compaction/size_tiered_compaction_strategy.cc index 933c5fcbd8..bc11399215 100644 --- a/compaction/size_tiered_compaction_strategy.cc +++ b/compaction/size_tiered_compaction_strategy.cc @@ -11,7 +11,6 @@ #include "size_tiered_compaction_strategy.hh" #include "cql3/statements/property_definitions.hh" -#include #include namespace sstables { @@ -241,7 +240,7 @@ size_tiered_compaction_strategy::get_sstables_for_compaction(table_state& table_ // ratio is greater than threshold. // prefer oldest sstables from biggest size tiers because they will be easier to satisfy conditions for // tombstone purge, i.e. less likely to shadow even older data. - for (auto&& sstables : buckets | boost::adaptors::reversed) { + for (auto&& sstables : buckets | std::views::reverse) { // filter out sstables which droppable tombstone ratio isn't greater than the defined threshold. auto e = boost::range::remove_if(sstables, [this, compaction_time, &table_s] (const sstables::shared_sstable& sst) -> bool { return !worth_dropping_tombstones(sst, compaction_time, table_s); diff --git a/cql3/selection/selection.cc b/cql3/selection/selection.cc index 1a1ee5dd53..39cccdb5ec 100644 --- a/cql3/selection/selection.cc +++ b/cql3/selection/selection.cc @@ -10,7 +10,6 @@ #include #include -#include #include "cql3/selection/selection.hh" #include "cql3/selection/raw_selector.hh" diff --git a/db/commitlog/commitlog.cc b/db/commitlog/commitlog.cc index a81405acd3..bf52b7bddc 100644 --- a/db/commitlog/commitlog.cc +++ b/db/commitlog/commitlog.cc @@ -13,8 +13,6 @@ #include #include #include -#include -#include #include #include #include diff --git a/multishard_mutation_query.cc b/multishard_mutation_query.cc index 3fbccd4de2..d16fb56743 100644 --- a/multishard_mutation_query.cc +++ b/multishard_mutation_query.cc @@ -19,8 +19,6 @@ #include #include -#include - #include logging::logger mmq_log("multishard_mutation_query"); diff --git a/mutation/range_tombstone_list.cc b/mutation/range_tombstone_list.cc index 4701959c3d..7f6d49b45e 100644 --- a/mutation/range_tombstone_list.cc +++ b/mutation/range_tombstone_list.cc @@ -6,10 +6,10 @@ * SPDX-License-Identifier: LicenseRef-ScyllaDB-Source-Available-1.0 */ -#include #include "range_tombstone_list.hh" #include "utils/assert.hh" #include "utils/allocation_strategy.hh" +#include #include range_tombstone_list::range_tombstone_list(const range_tombstone_list& x) @@ -386,7 +386,7 @@ void range_tombstone_list::reverter::update(range_tombstones_type::iterator it, } void range_tombstone_list::reverter::revert() noexcept { - for (auto&& rt : _ops | boost::adaptors::reversed) { + for (auto&& rt : _ops | std::views::reverse) { seastar::visit(rt, [this] (auto& op) { op.undo(_s, _dst); }); diff --git a/service/qos/service_level_controller.cc b/service/qos/service_level_controller.cc index f5ba500ba0..9c1ebeb6c6 100644 --- a/service/qos/service_level_controller.cc +++ b/service/qos/service_level_controller.cc @@ -8,7 +8,6 @@ #include "cql3/util.hh" #include "utils/assert.hh" -#include #include #include @@ -325,7 +324,7 @@ future<> service_level_controller::update_effective_service_levels_cache() { // role1 in `sorted` vector. // That's why if we iterate over the vector in reversed order, we will visit the roles from the bottom // and we can use already calculated effective service levels for all of the subroles. - for (auto& role: sorted | boost::adaptors::reversed) { + for (auto& role: sorted | std::views::reverse) { std::optional sl_options; if (auto sl_name_it = attributes.find(role); sl_name_it != attributes.end()) { diff --git a/test/boost/cql_query_test.cc b/test/boost/cql_query_test.cc index ff4a7878ce..036fe376d0 100644 --- a/test/boost/cql_query_test.cc +++ b/test/boost/cql_query_test.cc @@ -9,7 +9,6 @@ #include #include -#include #include #include diff --git a/test/lib/sstable_utils.cc b/test/lib/sstable_utils.cc index 67522bf870..cd4aa9443b 100644 --- a/test/lib/sstable_utils.cc +++ b/test/lib/sstable_utils.cc @@ -13,7 +13,6 @@ #include "dht/i_partitioner.hh" #include "dht/murmur3_partitioner.hh" #include -#include #include "sstables/version.hh" #include "test/lib/mutation_reader_assertions.hh" #include "test/lib/reader_concurrency_semaphore.hh" diff --git a/test/lib/test_services.cc b/test/lib/test_services.cc index f1c47fc4ce..2411721115 100644 --- a/test/lib/test_services.cc +++ b/test/lib/test_services.cc @@ -20,7 +20,6 @@ #include "utils/assert.hh" #include "utils/overloaded_functor.hh" #include -#include #include #include #include @@ -521,7 +520,7 @@ static sstring toc_filename(const sstring& dir, schema_ptr schema, sstables::gen } future test_env::reusable_sst(schema_ptr schema, sstring dir, sstables::generation_type generation) { - for (auto v : boost::adaptors::reverse(all_sstable_versions)) { + for (auto v : std::views::reverse(all_sstable_versions)) { if (co_await file_exists(toc_filename(dir, schema, generation, v))) { co_return co_await reusable_sst(schema, dir, generation, v); } diff --git a/tools/scylla-nodetool.cc b/tools/scylla-nodetool.cc index 930e640078..cca28596c1 100644 --- a/tools/scylla-nodetool.cc +++ b/tools/scylla-nodetool.cc @@ -21,7 +21,6 @@ #include #include #include -#include #include #include #include @@ -4525,7 +4524,7 @@ operation_func get_operation_function(const operation& op) noexcept { name.pop_back(); // Check suboperations. - for (auto n : name | boost::adaptors::reversed) { + for (auto n : name | std::views::reverse) { action = action.suboperation_funcs.at(n); } diff --git a/utils/dynamic_bitset.cc b/utils/dynamic_bitset.cc index eef6813ecc..e631f4168e 100644 --- a/utils/dynamic_bitset.cc +++ b/utils/dynamic_bitset.cc @@ -8,8 +8,7 @@ #include #include -#include -#include +#include #include "utils/dynamic_bitset.hh" #include "seastarx.hh" @@ -43,7 +42,7 @@ void dynamic_bitset::clear(size_t n) noexcept { size_t dynamic_bitset::find_first_set() const noexcept { size_t pos = 0; - for (auto& vv : _bits | boost::adaptors::reversed) { + for (auto& vv : _bits | std::views::reverse) { auto v = vv[pos]; pos *= bits_per_int; if (v) { @@ -94,7 +93,7 @@ size_t dynamic_bitset::find_next_set(size_t n) const noexcept size_t dynamic_bitset::find_last_set() const noexcept { size_t pos = 0; - for (auto& vv : _bits | boost::adaptors::reversed) { + for (auto& vv : _bits | std::views::reverse) { auto v = vv[pos]; pos *= bits_per_int; if (v) {