locator: Use local members in ..._replication_strategy constructors
The `config_options` arg had been used to initialize `_config_options` field of the base abstract_replication_strategy class, so it's more idiomatic to use the latter. Also it makes next patches simpler. Signed-off-by: Pavel Emelyanov <xemul@scylladb.com>
This commit is contained in:
@@ -33,7 +33,7 @@ network_topology_strategy::network_topology_strategy(
|
||||
const replication_strategy_config_options& config_options) :
|
||||
abstract_replication_strategy(config_options,
|
||||
replication_strategy_type::network_topology) {
|
||||
auto opts = config_options;
|
||||
auto opts = _config_options;
|
||||
process_tablet_options(*this, opts);
|
||||
|
||||
for (auto& config_pair : opts) {
|
||||
|
||||
@@ -20,7 +20,7 @@ namespace locator {
|
||||
|
||||
simple_strategy::simple_strategy(const replication_strategy_config_options& config_options) :
|
||||
abstract_replication_strategy(config_options, replication_strategy_type::simple) {
|
||||
for (auto& config_pair : config_options) {
|
||||
for (auto& config_pair : _config_options) {
|
||||
auto& key = config_pair.first;
|
||||
auto& val = config_pair.second;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user