diff --git a/replica/database.cc b/replica/database.cc index fb9eec09ff..d4e0c5bf09 100644 --- a/replica/database.cc +++ b/replica/database.cc @@ -29,7 +29,6 @@ #include #include "sstables/sstables.hh" #include "sstables/sstables_manager.hh" -#include "compaction/compaction.hh" #include #include #include @@ -51,7 +50,6 @@ #include "multishard_mutation_query.hh" #include "utils/human_readable.hh" -#include "utils/stall_free.hh" #include "utils/fmt-compat.hh" #include "utils/error_injection.hh" diff --git a/replica/database.hh b/replica/database.hh index f1f3aa6247..79be270137 100644 --- a/replica/database.hh +++ b/replica/database.hh @@ -21,7 +21,6 @@ #include #include #include -#include #include #include #include @@ -32,7 +31,6 @@ #include #include "db/commitlog/replay_position.hh" #include "db/commitlog/commitlog_types.hh" -#include #include "schema/schema_fwd.hh" #include "db/view/view.hh" #include "db/snapshot-ctl.hh" diff --git a/replica/distributed_loader.cc b/replica/distributed_loader.cc index 3f5342f96c..3bf5bb9fc3 100644 --- a/replica/distributed_loader.cc +++ b/replica/distributed_loader.cc @@ -6,7 +6,6 @@ * SPDX-License-Identifier: AGPL-3.0-or-later */ -#include #include #include #include @@ -20,8 +19,6 @@ #include "db/system_keyspace.hh" #include "db/system_distributed_keyspace.hh" #include "db/schema_tables.hh" -#include "utils/lister.hh" -#include "compaction/compaction.hh" #include "compaction/compaction_manager.hh" #include "compaction/task_manager_module.hh" #include "sstables/sstables.hh" @@ -278,7 +275,7 @@ class table_populator { sstring _ks; sstring _cf; global_table_ptr& _global_table; - fs::path _base_path; + std::filesystem::path _base_path; std::unordered_map>> _sstable_directories; sstables::sstable_version_types _highest_version = sstables::oldest_writable_sstable_format; sstables::generation_type _highest_generation; diff --git a/replica/exceptions.cc b/replica/exceptions.cc index 5db7681f0c..c36b913485 100644 --- a/replica/exceptions.cc +++ b/replica/exceptions.cc @@ -6,13 +6,10 @@ * SPDX-License-Identifier: AGPL-3.0-or-later */ -#include -#include #include #include #include "replica/exceptions.hh" -#include "utils/exceptions.hh" namespace replica { diff --git a/replica/exceptions.hh b/replica/exceptions.hh index 90c9dc1b1e..685d6be653 100644 --- a/replica/exceptions.hh +++ b/replica/exceptions.hh @@ -10,16 +10,13 @@ #include #include -#include #include #include +#include #include #include -#include "utils/exception_container.hh" -#include "utils/result.hh" - namespace replica { // A marker indicating that the exception_variant holds an unknown exception. diff --git a/replica/memtable.cc b/replica/memtable.cc index 19a506a040..38409becf1 100644 --- a/replica/memtable.cc +++ b/replica/memtable.cc @@ -14,6 +14,7 @@ #include "mutation/mutation_partition_view.hh" #include "readers/empty_v2.hh" #include "readers/forwardable_v2.hh" +#include "sstables/types.hh" namespace replica { diff --git a/replica/memtable.hh b/replica/memtable.hh index 82cf60e11e..fdbd30b1ed 100644 --- a/replica/memtable.hh +++ b/replica/memtable.hh @@ -8,8 +8,6 @@ #pragma once -#include -#include #include #include "replica/database_fwd.hh" #include "dht/decorated_key.hh" @@ -21,7 +19,6 @@ #include "db/commitlog/rp_set.hh" #include "utils/extremum_tracking.hh" #include "mutation/mutation_cleaner.hh" -#include "sstables/types.hh" #include "utils/double-decker.hh" #include "readers/empty_v2.hh" #include "readers/mutation_source.hh" diff --git a/replica/tablet_mutation_builder.hh b/replica/tablet_mutation_builder.hh index c240c3ff0c..b75b1d1c1e 100644 --- a/replica/tablet_mutation_builder.hh +++ b/replica/tablet_mutation_builder.hh @@ -10,8 +10,8 @@ #include "mutation/mutation.hh" #include "db/system_keyspace.hh" -#include "replica/tablets.hh" #include "service/session.hh" +#include "locator/tablets.hh" namespace replica {