database.*: Remove unused headers
The database.hh is the central recursive-headers knot -- it has ~50 includes. This patch leaves only 34 (it remains the champion though). Similar thing for database.cc. Both changes help the latter compile ~4% faster :) Signed-off-by: Pavel Emelyanov <xemul@scylladb.com> Message-Id: <20210414183107.30374-1-xemul@scylladb.com>
This commit is contained in:
committed by
Nadav Har'El
parent
8751728314
commit
5ecbc33be5
@@ -23,6 +23,7 @@
|
||||
|
||||
#include "base64.hh"
|
||||
|
||||
#include <seastar/core/sleep.hh>
|
||||
#include "alternator/executor.hh"
|
||||
#include "log.hh"
|
||||
#include "schema_builder.hh"
|
||||
|
||||
36
database.cc
36
database.cc
@@ -22,82 +22,46 @@
|
||||
#include "log.hh"
|
||||
#include "lister.hh"
|
||||
#include "database.hh"
|
||||
#include "unimplemented.hh"
|
||||
#include <seastar/core/future-util.hh>
|
||||
#include "db/commitlog/commitlog_entry.hh"
|
||||
#include "db/system_keyspace.hh"
|
||||
#include "db/system_distributed_keyspace.hh"
|
||||
#include "db/commitlog/commitlog.hh"
|
||||
#include "db/config.hh"
|
||||
#include "to_string.hh"
|
||||
#include "query-result-writer.hh"
|
||||
#include "cql3/column_identifier.hh"
|
||||
#include "cql3/functions/functions.hh"
|
||||
#include <seastar/core/seastar.hh>
|
||||
#include <seastar/core/coroutine.hh>
|
||||
#include <seastar/core/reactor.hh>
|
||||
#include <seastar/core/sleep.hh>
|
||||
#include <seastar/core/rwlock.hh>
|
||||
#include <seastar/core/metrics.hh>
|
||||
#include <seastar/core/execution_stage.hh>
|
||||
#include <seastar/util/bool_class.hh>
|
||||
#include <seastar/util/defer.hh>
|
||||
#include <boost/algorithm/string/classification.hpp>
|
||||
#include <boost/algorithm/string/split.hpp>
|
||||
#include "sstables/sstables.hh"
|
||||
#include "sstables/sstables_manager.hh"
|
||||
#include "sstables/compaction.hh"
|
||||
#include <boost/range/adaptor/transformed.hpp>
|
||||
#include <boost/range/adaptor/map.hpp>
|
||||
#include "locator/simple_snitch.hh"
|
||||
#include <boost/algorithm/cxx11/all_of.hpp>
|
||||
#include <boost/algorithm/cxx11/any_of.hpp>
|
||||
#include <boost/function_output_iterator.hpp>
|
||||
#include <boost/range/algorithm/heap_algorithm.hpp>
|
||||
#include <boost/range/algorithm/remove_if.hpp>
|
||||
#include <boost/range/algorithm/find.hpp>
|
||||
#include <boost/range/algorithm/find_if.hpp>
|
||||
#include <boost/range/algorithm/sort.hpp>
|
||||
#include <boost/range/adaptor/map.hpp>
|
||||
#include <boost/container/static_vector.hpp>
|
||||
#include "frozen_mutation.hh"
|
||||
#include <seastar/core/do_with.hh>
|
||||
#include "service/migration_manager.hh"
|
||||
#include "message/messaging_service.hh"
|
||||
#include "mutation_query.hh"
|
||||
#include <seastar/core/fstream.hh>
|
||||
#include <seastar/core/enum.hh>
|
||||
#include "utils/latency.hh"
|
||||
#include "schema_registry.hh"
|
||||
#include "service/priority_manager.hh"
|
||||
#include "cell_locking.hh"
|
||||
#include "db/view/row_locking.hh"
|
||||
#include "view_info.hh"
|
||||
#include "memtable-sstable.hh"
|
||||
#include "db/schema_tables.hh"
|
||||
#include "db/query_context.hh"
|
||||
#include "sstables/compaction_manager.hh"
|
||||
#include "sstables/compaction_backlog_manager.hh"
|
||||
#include "sstables/progress_monitor.hh"
|
||||
#include "auth/common.hh"
|
||||
#include "tracing/trace_keyspace_helper.hh"
|
||||
#include "gms/feature_service.hh"
|
||||
|
||||
#include "checked-file-impl.hh"
|
||||
#include "utils/disk-error-handler.hh"
|
||||
#include "utils/human_readable.hh"
|
||||
|
||||
#include "db/timeout_clock.hh"
|
||||
#include "db/large_data_handler.hh"
|
||||
#include "db/data_listeners.hh"
|
||||
#include "distributed_loader.hh"
|
||||
|
||||
#include "user_types_metadata.hh"
|
||||
#include <seastar/core/shared_ptr_incomplete.hh>
|
||||
#include <seastar/util/memory_diagnostics.hh>
|
||||
#include <seastar/core/coroutine.hh>
|
||||
|
||||
#include "schema_builder.hh"
|
||||
|
||||
using namespace std::chrono_literals;
|
||||
using namespace db;
|
||||
|
||||
23
database.hh
23
database.hh
@@ -22,13 +22,12 @@
|
||||
#ifndef DATABASE_HH_
|
||||
#define DATABASE_HH_
|
||||
|
||||
#include "dht/i_partitioner.hh"
|
||||
#include "locator/abstract_replication_strategy.hh"
|
||||
#include "index/secondary_index_manager.hh"
|
||||
#include <seastar/core/abort_source.hh>
|
||||
#include <seastar/core/sstring.hh>
|
||||
#include <seastar/core/shared_ptr.hh>
|
||||
#include <seastar/core/execution_stage.hh>
|
||||
#include <seastar/net/byteorder.hh>
|
||||
#include "utils/UUID.hh"
|
||||
#include "utils/hash.hh"
|
||||
#include "db_clock.hh"
|
||||
@@ -36,51 +35,32 @@
|
||||
#include <chrono>
|
||||
#include <seastar/core/distributed.hh>
|
||||
#include <functional>
|
||||
#include <cstdint>
|
||||
#include <unordered_map>
|
||||
#include <map>
|
||||
#include <set>
|
||||
#include <iosfwd>
|
||||
#include <boost/functional/hash.hpp>
|
||||
#include <boost/range/algorithm/find.hpp>
|
||||
#include <optional>
|
||||
#include <string.h>
|
||||
#include "types.hh"
|
||||
#include "compound.hh"
|
||||
#include <seastar/core/future.hh>
|
||||
#include <seastar/core/gate.hh>
|
||||
#include "cql3/column_specification.hh"
|
||||
#include "db/commitlog/replay_position.hh"
|
||||
#include <limits>
|
||||
#include <cstddef>
|
||||
#include "schema_fwd.hh"
|
||||
#include "db/view/view.hh"
|
||||
#include "db/schema_features.hh"
|
||||
#include "gms/feature.hh"
|
||||
#include "timestamp.hh"
|
||||
#include "tombstone.hh"
|
||||
#include "atomic_cell.hh"
|
||||
#include "query-request.hh"
|
||||
#include "keys.hh"
|
||||
#include "memtable.hh"
|
||||
#include <list>
|
||||
#include "mutation_reader.hh"
|
||||
#include "row_cache.hh"
|
||||
#include "compaction_strategy.hh"
|
||||
#include "utils/exponential_backoff_retry.hh"
|
||||
#include "utils/histogram.hh"
|
||||
#include "utils/estimated_histogram.hh"
|
||||
#include "sstables/sstable_set.hh"
|
||||
#include "sstables/progress_monitor.hh"
|
||||
#include "sstables/version.hh"
|
||||
#include <seastar/core/rwlock.hh>
|
||||
#include <seastar/core/shared_future.hh>
|
||||
#include <seastar/core/metrics_registration.hh>
|
||||
#include "tracing/trace_state.hh"
|
||||
#include "db/view/view_stats.hh"
|
||||
#include "db/view/view_update_backlog.hh"
|
||||
#include "db/view/row_locking.hh"
|
||||
#include "lister.hh"
|
||||
#include "utils/phased_barrier.hh"
|
||||
#include "backlog_controller.hh"
|
||||
#include "dirty_memory_manager.hh"
|
||||
@@ -95,7 +75,6 @@
|
||||
#include "user_types_metadata.hh"
|
||||
#include "query_class_config.hh"
|
||||
#include "absl-flat_hash_map.hh"
|
||||
#include "utils/updateable_value.hh"
|
||||
|
||||
class cell_locker;
|
||||
class cell_locker_stats;
|
||||
|
||||
@@ -36,6 +36,7 @@
|
||||
* along with Scylla. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include <seastar/core/sleep.hh>
|
||||
#include "dht/range_streamer.hh"
|
||||
#include "utils/fb_utilities.hh"
|
||||
#include "locator/snitch_base.hh"
|
||||
|
||||
@@ -39,6 +39,7 @@
|
||||
* along with Scylla. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include <seastar/core/sleep.hh>
|
||||
#include "schema_registry.hh"
|
||||
#include "service/migration_manager.hh"
|
||||
|
||||
|
||||
@@ -38,6 +38,7 @@
|
||||
* along with Scylla. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include <seastar/core/sleep.hh>
|
||||
#include "load_meter.hh"
|
||||
#include "load_broadcaster.hh"
|
||||
#include "cache_hitrate_calculator.hh"
|
||||
|
||||
@@ -23,6 +23,7 @@
|
||||
#include <seastar/testing/test_case.hh>
|
||||
#include <seastar/testing/thread_test_case.hh>
|
||||
|
||||
#include "lister.hh"
|
||||
#include "test/lib/tmpdir.hh"
|
||||
#include "test/lib/sstable_test_env.hh"
|
||||
#include "sstable_test.hh"
|
||||
|
||||
Reference in New Issue
Block a user