diff --git a/db/config.hh b/db/config.hh index 24a572664c..ed9e7a0bc6 100644 --- a/db/config.hh +++ b/db/config.hh @@ -15,7 +15,7 @@ #include #include -#include "locator/abstract_replication_strategy.hh" +#include "locator/replication_strategy_type.hh" #include "seastarx.hh" #include "utils/config_file.hh" #include "utils/enum_option.hh" diff --git a/locator/abstract_replication_strategy.hh b/locator/abstract_replication_strategy.hh index 02ab3a638f..6d0d156b80 100644 --- a/locator/abstract_replication_strategy.hh +++ b/locator/abstract_replication_strategy.hh @@ -19,6 +19,7 @@ #include "utils/sequenced_set.hh" #include "utils/simple_hashers.hh" #include "tablets.hh" +#include "locator/replication_strategy_type.hh" #include "data_dictionary/consistency_config_options.hh" // forward declaration since replica/database.hh includes this file @@ -38,13 +39,6 @@ extern logging::logger rslogger; using inet_address = gms::inet_address; using token = dht::token; -enum class replication_strategy_type { - simple, - local, - network_topology, - everywhere_topology, -}; - using replication_strategy_config_option = std::variant; using replication_strategy_config_options = std::map; diff --git a/locator/replication_strategy_type.hh b/locator/replication_strategy_type.hh new file mode 100644 index 0000000000..e0997eb55f --- /dev/null +++ b/locator/replication_strategy_type.hh @@ -0,0 +1,20 @@ +/* + * Copyright (C) 2015-present ScyllaDB + */ + +/* + * SPDX-License-Identifier: LicenseRef-ScyllaDB-Source-Available-1.1 + */ + +#pragma once + +namespace locator { + +enum class replication_strategy_type { + simple, + local, + network_topology, + everywhere_topology, +}; + +} // namespace locator