From 16deb4af3569a55c24e9703a6cbbb83331fb50ee Mon Sep 17 00:00:00 2001 From: Asias He Date: Mon, 13 Apr 2015 15:12:04 +0800 Subject: [PATCH] gossip: Add get_cluster_name and get_partitioner_name helper DatabaseDescriptor.getClusterName and .getPartitionerName are not ready. Add helpers to wrap them up. --- gms/gossiper.hh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/gms/gossiper.hh b/gms/gossiper.hh index 8d63071c12..aca4f87aa0 100644 --- a/gms/gossiper.hh +++ b/gms/gossiper.hh @@ -87,6 +87,14 @@ private: } void do_sort(std::vector& g_digest_list); timer _scheduled_gossip_task; + sstring get_cluster_name() { + // FIXME: DatabaseDescriptor.getClusterName() + return "my_cluster_name"; + } + sstring get_partitioner_name() { + // FIXME: DatabaseDescriptor.getPartitionerName() + return "my_partitioner_name"; + } private: inet_address get_broadcast_address() { // FIXME: Helper for FBUtilities.getBroadcastAddress