Clean up ks_meta_data construction

Simplify ks_meta_data construction in few places by using the default
arguments.

Signed-off-by: Pekka Enberg <penberg@cloudius-systems.com>
This commit is contained in:
Pekka Enberg
2015-05-19 11:16:11 +03:00
parent a225439fdb
commit f1fc575401
2 changed files with 2 additions and 5 deletions

View File

@@ -98,9 +98,7 @@ public:
ks_meta_data ksm(ks_name,
"org.apache.cassandra.locator.SimpleStrategy",
std::unordered_map<sstring, sstring>(),
false,
std::vector<schema_ptr>(),
shared_ptr<user_types_metadata>()
false
);
ks.create_replication_strategy(ksm);
});

View File

@@ -467,8 +467,7 @@ public:
to_sstring(ks_def.strategy_class),
std::unordered_map<sstring, sstring>(),//ks_def.strategy_options,
ks_def.durable_writes,
cf_defs,
shared_ptr<user_types_metadata>());
cf_defs);
auto& ks = db.find_keyspace(ks_def.name);
ks.create_replication_strategy(ksm);
});