From f1fc575401b22a015aa458f86d4d8ed080761bc4 Mon Sep 17 00:00:00 2001 From: Pekka Enberg Date: Tue, 19 May 2015 11:16:11 +0300 Subject: [PATCH] Clean up ks_meta_data construction Simplify ks_meta_data construction in few places by using the default arguments. Signed-off-by: Pekka Enberg --- tests/urchin/cql_test_env.cc | 4 +--- thrift/handler.cc | 3 +-- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/tests/urchin/cql_test_env.cc b/tests/urchin/cql_test_env.cc index 8bf9d0799c..6e54b0da36 100644 --- a/tests/urchin/cql_test_env.cc +++ b/tests/urchin/cql_test_env.cc @@ -98,9 +98,7 @@ public: ks_meta_data ksm(ks_name, "org.apache.cassandra.locator.SimpleStrategy", std::unordered_map(), - false, - std::vector(), - shared_ptr() + false ); ks.create_replication_strategy(ksm); }); diff --git a/thrift/handler.cc b/thrift/handler.cc index f20f581aab..7827a572f9 100644 --- a/thrift/handler.cc +++ b/thrift/handler.cc @@ -467,8 +467,7 @@ public: to_sstring(ks_def.strategy_class), std::unordered_map(),//ks_def.strategy_options, ks_def.durable_writes, - cf_defs, - shared_ptr()); + cf_defs); auto& ks = db.find_keyspace(ks_def.name); ks.create_replication_strategy(ksm); });