treewide: remove inclusions of storage_proxy.hh from headers
storage_proxy.hh is huge and includes many headers itself, so remove its inclusions from headers and re-add smaller headers where needed (and storage_proxy.hh itself in source files that need it). Ref #1.
This commit is contained in:
@@ -27,9 +27,9 @@
|
||||
#include <seastar/json/json_elements.hh>
|
||||
#include <seastar/core/sharded.hh>
|
||||
|
||||
#include "service/storage_proxy.hh"
|
||||
#include "service/migration_manager.hh"
|
||||
#include "service/client_state.hh"
|
||||
#include "service_permit.hh"
|
||||
#include "db/timeout_clock.hh"
|
||||
|
||||
#include "alternator/error.hh"
|
||||
@@ -51,6 +51,7 @@ namespace cql3::selection {
|
||||
|
||||
namespace service {
|
||||
class storage_service;
|
||||
class storage_proxy;
|
||||
}
|
||||
|
||||
namespace cdc {
|
||||
|
||||
@@ -23,6 +23,7 @@
|
||||
|
||||
#include "alternator/executor.hh"
|
||||
#include <seastar/core/future.hh>
|
||||
#include <seastar/core/condition-variable.hh>
|
||||
#include <seastar/http/httpd.hh>
|
||||
#include <seastar/net/tls.hh>
|
||||
#include <optional>
|
||||
|
||||
@@ -42,6 +42,7 @@
|
||||
#include "schema_builder.hh"
|
||||
#include "service/migration_listener.hh"
|
||||
#include "service/storage_service.hh"
|
||||
#include "service/storage_proxy.hh"
|
||||
#include "types/tuple.hh"
|
||||
#include "cql3/statements/select_statement.hh"
|
||||
#include "cql3/multi_column_relation.hh"
|
||||
|
||||
@@ -22,6 +22,7 @@
|
||||
#include "connection_notifier.hh"
|
||||
#include "cql3/constants.hh"
|
||||
#include "database.hh"
|
||||
#include "service/storage_proxy.hh"
|
||||
|
||||
#include <stdexcept>
|
||||
|
||||
|
||||
@@ -43,10 +43,15 @@
|
||||
|
||||
#include "service/client_state.hh"
|
||||
#include "service/query_state.hh"
|
||||
#include "service/storage_proxy.hh"
|
||||
#include "cql3/query_options.hh"
|
||||
#include "timeout_config.hh"
|
||||
|
||||
namespace service {
|
||||
|
||||
class storage_proxy;
|
||||
|
||||
}
|
||||
|
||||
namespace cql_transport {
|
||||
|
||||
namespace messages {
|
||||
|
||||
@@ -42,6 +42,7 @@
|
||||
#include "alter_keyspace_statement.hh"
|
||||
#include "prepared_statement.hh"
|
||||
#include "service/migration_manager.hh"
|
||||
#include "service/storage_proxy.hh"
|
||||
#include "db/system_keyspace.hh"
|
||||
#include "database.hh"
|
||||
#include "cql3/query_processor.hh"
|
||||
|
||||
@@ -43,6 +43,7 @@
|
||||
#include "index/secondary_index_manager.hh"
|
||||
#include "prepared_statement.hh"
|
||||
#include "service/migration_manager.hh"
|
||||
#include "service/storage_proxy.hh"
|
||||
#include "validation.hh"
|
||||
#include "db/extensions.hh"
|
||||
#include <boost/range/adaptor/filtered.hpp>
|
||||
|
||||
@@ -42,6 +42,7 @@
|
||||
#include "cql3/statements/alter_view_statement.hh"
|
||||
#include "cql3/statements/prepared_statement.hh"
|
||||
#include "service/migration_manager.hh"
|
||||
#include "service/storage_proxy.hh"
|
||||
#include "validation.hh"
|
||||
#include "view_info.hh"
|
||||
#include "db/extensions.hh"
|
||||
|
||||
@@ -41,7 +41,6 @@
|
||||
#include "modification_statement.hh"
|
||||
#include "raw/modification_statement.hh"
|
||||
#include "raw/batch_statement.hh"
|
||||
#include "service/storage_proxy.hh"
|
||||
#include "transport/messages/result_message.hh"
|
||||
#include "timestamp.hh"
|
||||
#include "log.hh"
|
||||
|
||||
@@ -23,6 +23,7 @@
|
||||
#include "cql3/functions/functions.hh"
|
||||
#include "prepared_statement.hh"
|
||||
#include "service/migration_manager.hh"
|
||||
#include "service/storage_proxy.hh"
|
||||
#include "lua.hh"
|
||||
#include "database.hh"
|
||||
#include "cql3/query_processor.hh"
|
||||
|
||||
@@ -43,6 +43,7 @@
|
||||
#include "prepared_statement.hh"
|
||||
#include "database.hh"
|
||||
#include "service/migration_manager.hh"
|
||||
#include "service/storage_proxy.hh"
|
||||
#include "transport/messages/result_message.hh"
|
||||
#include "cql3/query_processor.hh"
|
||||
|
||||
|
||||
@@ -41,6 +41,7 @@
|
||||
#include "prepared_statement.hh"
|
||||
#include "database.hh"
|
||||
#include "service/migration_manager.hh"
|
||||
#include "service/storage_proxy.hh"
|
||||
#include "user_types_metadata.hh"
|
||||
#include "cql3/query_processor.hh"
|
||||
|
||||
|
||||
@@ -42,6 +42,7 @@
|
||||
#include "cql3/statements/drop_index_statement.hh"
|
||||
#include "cql3/statements/prepared_statement.hh"
|
||||
#include "service/migration_manager.hh"
|
||||
#include "service/storage_proxy.hh"
|
||||
#include "schema_builder.hh"
|
||||
#include "database.hh"
|
||||
#include "gms/feature_service.hh"
|
||||
|
||||
@@ -43,6 +43,7 @@
|
||||
#include "cql3/statements/prepared_statement.hh"
|
||||
#include "cql3/query_processor.hh"
|
||||
#include "service/migration_manager.hh"
|
||||
#include "service/storage_proxy.hh"
|
||||
|
||||
namespace cql3 {
|
||||
|
||||
|
||||
@@ -44,6 +44,7 @@
|
||||
#include "boost/range/adaptor/map.hpp"
|
||||
|
||||
#include "service/migration_manager.hh"
|
||||
#include "service/storage_proxy.hh"
|
||||
#include "database.hh"
|
||||
#include "user_types_metadata.hh"
|
||||
|
||||
|
||||
@@ -43,6 +43,7 @@
|
||||
#include "cql3/statements/prepared_statement.hh"
|
||||
#include "cql3/query_processor.hh"
|
||||
#include "service/migration_manager.hh"
|
||||
#include "service/storage_proxy.hh"
|
||||
#include "view_info.hh"
|
||||
#include "database.hh"
|
||||
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
#include "db/config.hh"
|
||||
#include "database.hh"
|
||||
#include "gms/feature_service.hh"
|
||||
#include "service/storage_proxy.hh"
|
||||
|
||||
namespace cql3 {
|
||||
namespace statements {
|
||||
|
||||
@@ -60,7 +60,6 @@
|
||||
|
||||
#include "unimplemented.hh"
|
||||
#include "validation.hh"
|
||||
#include "service/storage_proxy.hh"
|
||||
|
||||
#include <memory>
|
||||
#include <optional>
|
||||
|
||||
@@ -39,7 +39,6 @@
|
||||
|
||||
#include "cql3/cql_statement.hh"
|
||||
#include "modification_statement.hh"
|
||||
#include "service/storage_proxy.hh"
|
||||
#include "transport/messages/result_message.hh"
|
||||
#include "timestamp.hh"
|
||||
#include "log.hh"
|
||||
|
||||
@@ -56,7 +56,6 @@
|
||||
|
||||
#include "unimplemented.hh"
|
||||
#include "validation.hh"
|
||||
#include "service/storage_proxy.hh"
|
||||
|
||||
#include <memory>
|
||||
|
||||
|
||||
@@ -52,6 +52,7 @@
|
||||
#include "query-result-reader.hh"
|
||||
#include "query_result_merger.hh"
|
||||
#include "service/pager/query_pagers.hh"
|
||||
#include "service/storage_proxy.hh"
|
||||
#include <seastar/core/execution_stage.hh>
|
||||
#include "view_info.hh"
|
||||
#include "partition_slice_builder.hh"
|
||||
|
||||
@@ -44,6 +44,7 @@
|
||||
#include "cql3/cql_statement.hh"
|
||||
#include "database.hh"
|
||||
#include "cql3/query_processor.hh"
|
||||
#include "service/storage_proxy.hh"
|
||||
#include <optional>
|
||||
|
||||
namespace cql3 {
|
||||
|
||||
@@ -35,6 +35,7 @@
|
||||
#include <seastar/core/metrics.hh>
|
||||
#include <seastar/util/defer.hh>
|
||||
#include <boost/algorithm/string/split.hpp>
|
||||
#include <boost/algorithm/string/erase.hpp>
|
||||
#include "sstables/sstables.hh"
|
||||
#include "sstables/sstables_manager.hh"
|
||||
#include "sstables/compaction.hh"
|
||||
@@ -54,6 +55,7 @@
|
||||
#include "gms/feature_service.hh"
|
||||
|
||||
#include "utils/human_readable.hh"
|
||||
#include "utils/fb_utilities.hh"
|
||||
|
||||
#include "db/timeout_clock.hh"
|
||||
#include "db/large_data_handler.hh"
|
||||
|
||||
@@ -61,6 +61,7 @@
|
||||
#include "system_keyspace.hh"
|
||||
#include "schema_tables.hh"
|
||||
#include "schema_builder.hh"
|
||||
#include "service/storage_proxy.hh"
|
||||
#include "utils/rjson.hh"
|
||||
#include "cql3/query_processor.hh"
|
||||
#include "cql3/untyped_result_set.hh"
|
||||
|
||||
@@ -22,6 +22,7 @@
|
||||
|
||||
#include <memory>
|
||||
#include <seastar/core/sharded.hh>
|
||||
#include <seastar/core/distributed.hh>
|
||||
#include <seastar/core/future.hh>
|
||||
#include "cql3/query_processor.hh"
|
||||
#include "cql3/query_options.hh"
|
||||
|
||||
@@ -41,6 +41,7 @@
|
||||
#include "db/schema_tables.hh"
|
||||
|
||||
#include "service/migration_manager.hh"
|
||||
#include "service/storage_proxy.hh"
|
||||
#include "gms/feature_service.hh"
|
||||
#include "partition_slice_builder.hh"
|
||||
#include "dht/i_partitioner.hh"
|
||||
|
||||
@@ -40,7 +40,6 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "service/storage_proxy.hh"
|
||||
#include "mutation.hh"
|
||||
#include "cql3/functions/user_function.hh"
|
||||
#include "schema_fwd.hh"
|
||||
@@ -48,6 +47,7 @@
|
||||
#include "hashing.hh"
|
||||
#include "schema_mutations.hh"
|
||||
#include "types/map.hh"
|
||||
#include "query-result-set.hh"
|
||||
|
||||
#include <vector>
|
||||
#include <map>
|
||||
@@ -61,6 +61,13 @@ class result_set;
|
||||
namespace service {
|
||||
|
||||
class storage_service;
|
||||
class storage_proxy;
|
||||
|
||||
}
|
||||
|
||||
namespace gms {
|
||||
|
||||
class feature_service;
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -32,6 +32,7 @@
|
||||
#include "types/set.hh"
|
||||
#include "cdc/generation.hh"
|
||||
#include "cql3/query_processor.hh"
|
||||
#include "service/storage_proxy.hh"
|
||||
|
||||
#include <seastar/core/seastar.hh>
|
||||
#include <seastar/core/shared_ptr.hh>
|
||||
|
||||
@@ -70,6 +70,7 @@
|
||||
#include "mutation_partition.hh"
|
||||
#include "service/migration_manager.hh"
|
||||
#include "service/storage_service.hh"
|
||||
#include "service/storage_proxy.hh"
|
||||
#include "view_info.hh"
|
||||
#include "view_update_checks.hh"
|
||||
#include "types/user.hh"
|
||||
|
||||
@@ -30,6 +30,7 @@
|
||||
#include "db/query_context.hh"
|
||||
#include "auth/service.hh"
|
||||
#include "service/migration_manager.hh"
|
||||
#include "service/storage_proxy.hh"
|
||||
#include "service/client_state.hh"
|
||||
#include "transport/server.hh"
|
||||
#include "db/system_keyspace.hh"
|
||||
|
||||
@@ -31,6 +31,7 @@
|
||||
#include "exceptions/exceptions.hh"
|
||||
#include "service/query_state.hh"
|
||||
#include "service/storage_service.hh"
|
||||
#include "service/storage_proxy.hh"
|
||||
|
||||
#include <seastar/core/future-util.hh>
|
||||
#include <seastar/core/seastar.hh>
|
||||
|
||||
@@ -32,7 +32,6 @@
|
||||
#include "auth/service.hh"
|
||||
#include "cql3/values.hh"
|
||||
#include "service/client_state.hh"
|
||||
#include "service/storage_proxy.hh"
|
||||
#include "service_permit.hh"
|
||||
#include "timeout_config.hh"
|
||||
#include "utils/estimated_histogram.hh"
|
||||
@@ -42,6 +41,7 @@
|
||||
#include <seastar/core/seastar.hh>
|
||||
#include <seastar/core/semaphore.hh>
|
||||
#include <seastar/core/sharded.hh>
|
||||
#include <seastar/core/execution_stage.hh>
|
||||
#include <seastar/net/tls.hh>
|
||||
|
||||
#include <memory>
|
||||
@@ -50,6 +50,12 @@ db::consistency_level make_consistency_level(const sstring&);
|
||||
|
||||
class redis_exception;
|
||||
|
||||
namespace service {
|
||||
|
||||
class storage_proxy;
|
||||
|
||||
}
|
||||
|
||||
namespace redis_transport {
|
||||
|
||||
struct redis_server_config {
|
||||
|
||||
@@ -23,6 +23,7 @@
|
||||
#include "redis/service.hh"
|
||||
#include "redis/keyspace_utils.hh"
|
||||
#include "redis/server.hh"
|
||||
#include "service/storage_proxy.hh"
|
||||
#include "db/config.hh"
|
||||
#include "log.hh"
|
||||
#include "auth/common.hh"
|
||||
|
||||
@@ -42,6 +42,7 @@
|
||||
#include <seastar/core/sleep.hh>
|
||||
#include "schema_registry.hh"
|
||||
#include "service/migration_manager.hh"
|
||||
#include "service/storage_proxy.hh"
|
||||
|
||||
#include "service/migration_listener.hh"
|
||||
#include "message/messaging_service.hh"
|
||||
|
||||
@@ -43,6 +43,7 @@
|
||||
|
||||
#include "message/messaging_service.hh"
|
||||
#include "gms/failure_detector.hh"
|
||||
#include "gms/gossiper.hh"
|
||||
#include "db/schema_tables.hh"
|
||||
#include "frozen_mutation.hh"
|
||||
#include "migration_manager.hh"
|
||||
|
||||
@@ -44,11 +44,12 @@
|
||||
#include "paging_state.hh"
|
||||
#include "cql3/result_set.hh"
|
||||
#include "cql3/selection/selection.hh"
|
||||
#include "service/storage_proxy.hh"
|
||||
#include "service/query_state.hh"
|
||||
|
||||
namespace service {
|
||||
|
||||
class storage_proxy_coordinator_query_result;
|
||||
|
||||
namespace pager {
|
||||
|
||||
/**
|
||||
|
||||
@@ -47,6 +47,7 @@
|
||||
#include "gms/inet_address.hh"
|
||||
#include "log.hh"
|
||||
#include "service/migration_manager.hh"
|
||||
#include "service/storage_proxy.hh"
|
||||
#include "to_string.hh"
|
||||
#include "gms/gossiper.hh"
|
||||
#include "gms/failure_detector.hh"
|
||||
|
||||
2
table.cc
2
table.cc
@@ -42,7 +42,9 @@
|
||||
#include <boost/range/adaptor/map.hpp>
|
||||
#include "utils/error_injection.hh"
|
||||
#include "utils/histogram_metrics_helper.hh"
|
||||
#include "utils/fb_utilities.hh"
|
||||
#include "mutation_source_metadata.hh"
|
||||
#include "gms/gossiper.hh"
|
||||
|
||||
static logging::logger tlogger("table");
|
||||
static seastar::metrics::label column_family_label("cf");
|
||||
|
||||
@@ -36,6 +36,7 @@
|
||||
#include "cql3/query_processor.hh"
|
||||
#include "cql3/untyped_result_set.hh"
|
||||
#include "db/batchlog_manager.hh"
|
||||
#include "service/storage_proxy.hh"
|
||||
|
||||
#include "message/messaging_service.hh"
|
||||
|
||||
|
||||
@@ -31,6 +31,7 @@
|
||||
#include "test/lib/log.hh"
|
||||
|
||||
#include "database.hh"
|
||||
#include "lister.hh"
|
||||
#include "partition_slice_builder.hh"
|
||||
#include "frozen_mutation.hh"
|
||||
#include "test/lib/mutation_source_test.hh"
|
||||
|
||||
@@ -30,6 +30,7 @@
|
||||
#include "test/lib/mutation_source_test.hh"
|
||||
#include "test/lib/result_set_assertions.hh"
|
||||
#include "service/migration_manager.hh"
|
||||
#include "service/storage_proxy.hh"
|
||||
#include "schema_builder.hh"
|
||||
#include "schema_registry.hh"
|
||||
#include "db/schema_tables.hh"
|
||||
|
||||
@@ -28,6 +28,8 @@
|
||||
#include "types/list.hh"
|
||||
#include "test/lib/exception_utils.hh"
|
||||
|
||||
#include <boost/algorithm/string/join.hpp>
|
||||
|
||||
// Specifies that the given 'cql' query fails with the 'msg' message.
|
||||
// Requires a cql_test_env. The caller must be inside thread.
|
||||
#define REQUIRE_INVALID(e, cql, msg) \
|
||||
|
||||
@@ -42,6 +42,7 @@
|
||||
#include "sstables/compaction_manager.hh"
|
||||
#include "message/messaging_service.hh"
|
||||
#include "service/storage_service.hh"
|
||||
#include "service/storage_proxy.hh"
|
||||
#include "auth/service.hh"
|
||||
#include "auth/common.hh"
|
||||
#include "db/config.hh"
|
||||
|
||||
@@ -20,6 +20,8 @@
|
||||
*/
|
||||
|
||||
#include <boost/algorithm/string/replace.hpp>
|
||||
#include <boost/algorithm/string/split.hpp>
|
||||
#include <boost/algorithm/string/join.hpp>
|
||||
#include <boost/date_time/posix_time/posix_time.hpp>
|
||||
#include <boost/range/irange.hpp>
|
||||
#include <boost/range/algorithm_ext.hpp>
|
||||
@@ -45,6 +47,7 @@
|
||||
|
||||
using namespace std::chrono_literals;
|
||||
using namespace seastar;
|
||||
namespace fs = std::filesystem;
|
||||
using int_range = nonwrapping_range<int>;
|
||||
|
||||
reactor::io_stats s;
|
||||
|
||||
@@ -20,6 +20,7 @@
|
||||
*/
|
||||
|
||||
#include <boost/algorithm/string/split.hpp>
|
||||
#include <boost/algorithm/string/classification.hpp>
|
||||
#include <json/json.h>
|
||||
|
||||
#include <boost/range/irange.hpp>
|
||||
|
||||
@@ -35,6 +35,7 @@
|
||||
#include <boost/move/iterator.hpp>
|
||||
#include "db/marshal/type_parser.hh"
|
||||
#include "service/migration_manager.hh"
|
||||
#include "service/storage_proxy.hh"
|
||||
#include "utils/class_registrator.hh"
|
||||
#include "noexcept_traits.hh"
|
||||
#include "schema_registry.hh"
|
||||
|
||||
@@ -21,6 +21,7 @@
|
||||
|
||||
#include "server.hh"
|
||||
#include "handler.hh"
|
||||
#include "db/config.hh"
|
||||
#include <seastar/core/future-util.hh>
|
||||
#include <seastar/core/circular_buffer.hh>
|
||||
#include <seastar/core/metrics.hh>
|
||||
|
||||
@@ -49,6 +49,7 @@
|
||||
#include "types/set.hh"
|
||||
#include "types/map.hh"
|
||||
#include "utils/UUID_gen.hh"
|
||||
#include "utils/fb_utilities.hh"
|
||||
|
||||
namespace tracing {
|
||||
|
||||
|
||||
@@ -35,6 +35,7 @@
|
||||
#include "dht/token-sharding.hh"
|
||||
#include "service/migration_manager.hh"
|
||||
#include "service/memory_limiter.hh"
|
||||
#include "service/storage_proxy.hh"
|
||||
#include "db/consistency_level_type.hh"
|
||||
#include "database.hh"
|
||||
#include "db/write_type.hh"
|
||||
|
||||
@@ -25,7 +25,6 @@
|
||||
#include <seastar/core/seastar.hh>
|
||||
#include "service/endpoint_lifecycle_subscriber.hh"
|
||||
#include "service/migration_listener.hh"
|
||||
#include "service/storage_proxy.hh"
|
||||
#include "cql3/query_processor.hh"
|
||||
#include "cql3/values.hh"
|
||||
#include "auth/authenticator.hh"
|
||||
@@ -39,6 +38,7 @@
|
||||
#include "utils/fragmented_temporary_buffer.hh"
|
||||
#include "service_permit.hh"
|
||||
#include <seastar/core/sharded.hh>
|
||||
#include <seastar/core/execution_stage.hh>
|
||||
#include "utils/updateable_value.hh"
|
||||
#include "service/qos/service_level_controller.hh"
|
||||
#include "generic_server.hh"
|
||||
|
||||
Reference in New Issue
Block a user