From 1c480554eb54f988bd1fe4e724dffa9b59e27b4d Mon Sep 17 00:00:00 2001 From: Asias He Date: Tue, 20 Oct 2015 14:38:27 +0800 Subject: [PATCH] storage_service: Stub get_new_source_ranges Needed by restore_replica_count. --- service/storage_service.hh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/service/storage_service.hh b/service/storage_service.hh index 94b1640dad..f0d4721588 100644 --- a/service/storage_service.hh +++ b/service/storage_service.hh @@ -787,7 +787,7 @@ private: { return Long.parseLong(pieces[2]); } - +#endif /** * Finds living endpoints responsible for the given ranges * @@ -795,8 +795,9 @@ private: * @param ranges the ranges to find sources for * @return multimap of addresses to ranges the address is responsible for */ - private Multimap> getNewSourceRanges(String keyspaceName, Set> ranges) - { + std::unordered_multimap> get_new_source_ranges(const sstring& keyspaceName, const std::vector>& ranges) { + return std::unordered_multimap>(); +#if 0 InetAddress myAddress = FBUtilities.getBroadcastAddress(); Multimap, InetAddress> rangeAddresses = Keyspace.open(keyspaceName).getReplicationStrategy().getRangeAddresses(_token_metadata.cloneOnlyTokenMap()); Multimap> sourceRanges = HashMultimap.create(); @@ -821,7 +822,9 @@ private: } } return sourceRanges; +#endif } +#if 0 /** * Sends a notification to a node indicating we have finished replicating data.