Skip to content

Commit

Permalink
IWYU
Browse files Browse the repository at this point in the history
  • Loading branch information
GehaFearless committed Nov 8, 2023
1 parent 686f90a commit faec076
Show file tree
Hide file tree
Showing 104 changed files with 155 additions and 45 deletions.
1 change: 1 addition & 0 deletions src/client/partition_resolver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
#include "partition_resolver_manager.h"
#include "runtime/api_layer1.h"
#include "runtime/api_task.h"
#include "runtime/rpc/dns_resolver.h"
#include "runtime/task/task_spec.h"
#include "utils/fmt_logging.h"
#include "utils/threadpool_code.h"
Expand Down
4 changes: 2 additions & 2 deletions src/client/partition_resolver.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,12 @@
#include <stdint.h>
#include <chrono>
#include <functional>
#include <memory>
#include <string>
#include <utility>
#include <vector>

#include "common/gpid.h"
#include "runtime/rpc/dns_resolver.h"
#include "runtime/rpc/rpc_address.h"
#include "runtime/rpc/rpc_host_port.h"
#include "runtime/rpc/rpc_message.h"
#include "runtime/rpc/serialization.h"
Expand All @@ -46,6 +45,7 @@
#include "utils/error_code.h"

namespace dsn {
class dns_resolver;
class task_tracker;

namespace replication {
Expand Down
2 changes: 2 additions & 0 deletions src/client/partition_resolver_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@
#include "utils/fmt_logging.h"

namespace dsn {
class dns_resolver;

namespace replication {

template <typename T>
Expand Down
4 changes: 3 additions & 1 deletion src/client/partition_resolver_manager.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
#pragma once

#include <map>
#include <memory>
#include <string>
#include <vector>

Expand All @@ -35,7 +36,8 @@
#include "utils/zlocks.h"

namespace dsn {
class rpc_address;
class dns_resolver;
class host_port;

namespace replication {

Expand Down
1 change: 1 addition & 0 deletions src/client/partition_resolver_simple.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
#include "dsn.layer2_types.h"
#include "partition_resolver_simple.h"
#include "runtime/api_layer1.h"
#include "runtime/rpc/dns_resolver.h"
#include "runtime/rpc/rpc_message.h"
#include "runtime/rpc/serialization.h"
#include "runtime/task/async_calls.h"
Expand Down
1 change: 1 addition & 0 deletions src/client/partition_resolver_simple.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
#include "utils/zlocks.h"

namespace dsn {
class dns_resolver;
class message_ex;

namespace replication {
Expand Down
1 change: 1 addition & 0 deletions src/client/replication_ddl_client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
#include "meta/meta_rpc_types.h"
#include "runtime/api_layer1.h"
#include "runtime/rpc/group_host_port.h"
#include "runtime/rpc/rpc_address.h"
#include "utils/error_code.h"
#include "utils/fmt_logging.h"
#include "utils/output_utils.h"
Expand Down
1 change: 1 addition & 0 deletions src/client/test/ddl_client_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
#include <algorithm>
#include <deque>
#include <memory>
#include <string>
#include <vector>

#include "client/replication_ddl_client.h"
Expand Down
2 changes: 1 addition & 1 deletion src/client_lib/mutation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#include <vector>

#include "../base/pegasus_utils.h"
#include "utils/string_view.h"
#include "utils/enum_helper.h"

using namespace ::dsn;

Expand Down
1 change: 1 addition & 0 deletions src/client_lib/pegasus_client_impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
#include "pegasus_key_schema.h"
#include "pegasus_utils.h"
#include "rrdb/rrdb.client.h"
#include "runtime/rpc/dns_resolver.h"
#include "runtime/rpc/group_host_port.h"
#include "runtime/rpc/serialization.h"
#include "runtime/task/async_calls.h"
Expand Down
2 changes: 1 addition & 1 deletion src/client_lib/pegasus_client_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@
#include <vector>

#include "rrdb/rrdb_types.h"
#include "runtime/rpc/dns_resolver.h"
#include "runtime/rpc/rpc_host_port.h"
#include "utils/blob.h"
#include "utils/zlocks.h"

namespace dsn {
class dns_resolver;
class error_code;
class message_ex;
class task_tracker;
Expand Down
2 changes: 2 additions & 0 deletions src/common/replication_common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,14 @@
#include <memory>
#include <set>
#include <unordered_set>
#include <utility>

#include "common/gpid.h"
#include "common/replica_envs.h"
#include "common/replication_other_types.h"
#include "dsn.layer2_types.h"
#include "fmt/core.h"
#include "runtime/rpc/rpc_address.h"
#include "runtime/service_app.h"
#include "utils/config_api.h"
#include "utils/filesystem.h"
Expand Down
2 changes: 2 additions & 0 deletions src/failure_detector/failure_detector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@
#include "fd_types.h"
#include "perf_counter/perf_counter.h"
#include "runtime/api_layer1.h"
#include "runtime/rpc/dns_resolver.h"
#include "runtime/rpc/rpc_address.h"
#include "runtime/serverlet.h"
#include "runtime/task/async_calls.h"
#include "runtime/task/task_spec.h"
Expand Down
2 changes: 1 addition & 1 deletion src/failure_detector/failure_detector.h
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@
#include "failure_detector/fd.server.h"
#include "perf_counter/perf_counter_wrapper.h"
#include "runtime/rpc/rpc_host_port.h"
#include "runtime/rpc/dns_resolver.h"
#include "runtime/task/task.h"
#include "runtime/task/task_code.h"
#include "runtime/task/task_tracker.h"
Expand All @@ -82,6 +81,7 @@

namespace dsn {
class command_deregister;
class dns_resolver;
template <typename TResponse>
class rpc_replier;

Expand Down
3 changes: 2 additions & 1 deletion src/failure_detector/failure_detector_multimaster.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,13 @@

#include "failure_detector/failure_detector_multimaster.h"
#include "fd_types.h"
#include "runtime/rpc/group_address.h"
#include "runtime/rpc/rpc_host_port.h"
#include "utils/error_code.h"
#include "utils/rand.h"

namespace dsn {
class dns_resolver;

namespace dist {

slave_failure_detector_with_multimaster::slave_failure_detector_with_multimaster(
Expand Down
3 changes: 3 additions & 0 deletions src/failure_detector/failure_detector_multimaster.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
#pragma once

#include <functional>
#include <memory>
#include <vector>

#include "failure_detector/failure_detector.h"
Expand All @@ -36,7 +37,9 @@
#include "utils/zlocks.h"

namespace dsn {
class dns_resolver;
class error_code;

namespace fd {
class beacon_ack;
} // namespace fd
Expand Down
5 changes: 3 additions & 2 deletions src/failure_detector/test/failure_detector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,10 @@
#include "meta/meta_server_failure_detector.h"
#include "replica/replica_stub.h"
#include "runtime/api_layer1.h"
#include "runtime/rpc/group_address.h"
#include "runtime/rpc/network.h"
#include "runtime/rpc/dns_resolver.h"
#include "runtime/rpc/group_host_port.h"
#include "runtime/rpc/network.h"
#include "runtime/rpc/rpc_address.h"
#include "runtime/rpc/rpc_host_port.h"
#include "runtime/rpc/rpc_message.h"
#include "runtime/serverlet.h"
Expand Down
4 changes: 3 additions & 1 deletion src/meta/app_balance_policy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,14 @@
#include "app_balance_policy.h"
#include "common/gpid.h"
#include "meta/load_balance_policy.h"
#include "meta/meta_service.h"
#include "metadata_types.h"
#include "runtime/rpc/rpc_host_port.h"
#include "utils/flags.h"
#include "utils/fmt_logging.h"

namespace dsn {
class rpc_address;
class dns_resolver;

namespace replication {
DSN_DEFINE_bool(meta_server, balancer_in_turn, false, "balance the apps one-by-one/concurrently");
Expand Down
1 change: 1 addition & 0 deletions src/meta/app_balance_policy.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
#include "utils/command_manager.h"

namespace dsn {
class dns_resolver;
class gpid;
class host_port;

Expand Down
3 changes: 2 additions & 1 deletion src/meta/backup_engine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,9 @@
#include "meta/meta_data.h"
#include "meta/meta_service.h"
#include "runtime/api_layer1.h"
#include "runtime/rpc/rpc_host_port.h"
#include "runtime/rpc/dns_resolver.h"
#include "runtime/rpc/rpc_holder.h"
#include "runtime/rpc/rpc_host_port.h"
#include "runtime/task/async_calls.h"
#include "runtime/task/task.h"
#include "runtime/task/task_code.h"
Expand Down
3 changes: 3 additions & 0 deletions src/meta/backup_engine.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
#include <gtest/gtest_prod.h>
#include <stdint.h>
#include <map>
#include <memory>
#include <string>

#include "backup_types.h"
Expand All @@ -30,8 +31,10 @@

namespace dsn {
class blob;
class dns_resolver;
class gpid;
class host_port;

namespace dist {
namespace block_service {
class block_filesystem;
Expand Down
3 changes: 2 additions & 1 deletion src/meta/cluster_balance_policy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,14 @@

#include "dsn.layer2_types.h"
#include "meta/load_balance_policy.h"
#include "meta/meta_service.h"
#include "runtime/rpc/dns_resolver.h"
#include "utils/flags.h"
#include "utils/fmt_logging.h"
#include "utils/utils.h"

namespace dsn {
namespace replication {
class meta_service;

DSN_DEFINE_uint32(meta_server,
balance_op_count_per_round,
Expand Down
1 change: 0 additions & 1 deletion src/meta/duplication/duplication_info.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
#include "common/json_helper.h"
#include "common/replication_other_types.h"
#include "duplication_types.h"
#include "runtime/rpc/rpc_address.h"
#include "runtime/rpc/rpc_host_port.h"
#include "utils/blob.h"
#include "utils/error_code.h"
Expand Down
2 changes: 2 additions & 0 deletions src/meta/duplication/meta_duplication_service.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,10 @@
#include "meta_duplication_service.h"
#include "metadata_types.h"
#include "runtime/api_layer1.h"
#include "runtime/rpc/dns_resolver.h"
#include "runtime/rpc/group_host_port.h"
#include "runtime/rpc/rpc_address.h"
#include "runtime/rpc/rpc_host_port.h"
#include "runtime/rpc/rpc_message.h"
#include "runtime/rpc/serialization.h"
#include "runtime/task/async_calls.h"
Expand Down
5 changes: 2 additions & 3 deletions src/meta/duplication/meta_duplication_service.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,11 @@
#include "meta/duplication/duplication_info.h"
#include "meta/meta_data.h"
#include "meta/server_state.h"
#include "runtime/rpc/rpc_host_port.h"
#include "runtime/rpc/dns_resolver.h"
#include "utils/fmt_logging.h"

namespace dsn {
class rpc_address;
class dns_resolver;
class host_port;
class zrwlock_nr;

namespace replication {
Expand Down
2 changes: 1 addition & 1 deletion src/meta/greedy_load_balancer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
#include "meta_admin_types.h"
#include "meta_data.h"
#include "perf_counter/perf_counter.h"
#include "runtime/rpc/rpc_address.h"
#include "runtime/rpc/rpc_host_port.h"
#include "utils/command_manager.h"
#include "utils/flags.h"
#include "utils/fmt_logging.h"
Expand Down
1 change: 1 addition & 0 deletions src/meta/greedy_load_balancer.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@

namespace dsn {
class command_deregister;
class host_port;
class rpc_address;

namespace replication {
Expand Down
4 changes: 4 additions & 0 deletions src/meta/load_balance_policy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@
#include "dsn.layer2_types.h"
#include "meta/greedy_load_balancer.h"
#include "meta/meta_data.h"
#include "meta/meta_service.h"
#include "meta_admin_types.h"
#include "runtime/rpc/dns_resolver.h"
#include "utils/command_manager.h"
#include "utils/fail_point.h"
#include "utils/flags.h"
Expand All @@ -38,6 +40,8 @@
#include "utils/strings.h"

namespace dsn {
class rpc_address;

namespace replication {
DSN_DECLARE_uint64(min_live_node_count_for_unfreeze);

Expand Down
4 changes: 3 additions & 1 deletion src/meta/load_balance_policy.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,17 +33,19 @@
#include "common/gpid.h"
#include "common/replication_other_types.h"
#include "meta_data.h"
#include "meta_service.h"
#include "runtime/rpc/rpc_host_port.h"
#include "utils/enum_helper.h"
#include "utils/zlocks.h"

namespace dsn {
class command_deregister;
class dns_resolver;
class partition_configuration;
class rpc_address;

namespace replication {
class configuration_balancer_request;
class meta_service;

// disk_tag->primary_count/total_count_on_this_disk
typedef std::map<std::string, int> disk_load;
Expand Down
2 changes: 2 additions & 0 deletions src/meta/meta_bulk_load_service.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@
#include "meta/meta_state_service.h"
#include "meta/server_state.h"
#include "meta_admin_types.h"
#include "runtime/rpc/dns_resolver.h"
#include "runtime/rpc/rpc_address.h"
#include "runtime/rpc/rpc_holder.h"
#include "runtime/rpc/rpc_message.h"
#include "runtime/rpc/serialization.h"
Expand Down
2 changes: 2 additions & 0 deletions src/meta/meta_data.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@
#include "common/replication_enums.h"
#include "meta_data.h"
#include "runtime/api_layer1.h"
#include "runtime/rpc/dns_resolver.h"
#include "runtime/rpc/rpc_address.h"
#include "runtime/rpc/rpc_message.h"
#include "utils/flags.h"
#include "utils/fmt_logging.h"
Expand Down
2 changes: 2 additions & 0 deletions src/meta/meta_data.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,10 @@
#include "utils/enum_helper.h"
#include "utils/error_code.h"
#include "utils/extensible_object.h"
#include "utils/fmt_logging.h"

namespace dsn {
class dns_resolver;
class message_ex;

namespace replication {
Expand Down
Loading

0 comments on commit faec076

Please sign in to comment.