storage_service: Fix ranges in stream_hints

Use range = make_open_ended_both_sides to present the entire ring.
This commit is contained in:
Asias He
2015-10-22 16:25:53 +08:00
parent 0d2fb9c99d
commit affab296b0

View File

@@ -2011,9 +2011,8 @@ future<> storage_service::stream_hints() {
auto preferred = hints_destination_host; // FIXME: SystemKeyspace.getPreferredIP(hints_destination_host);
// stream all hints -- range list will be a singleton of "the entire ring"
auto t = dht::global_partitioner().get_minimum_token();
std::vector<range<token>> ranges = {range<token>(t)};
logger.debug("stream_hints: token={}, ranges={}", t, ranges);
std::vector<range<token>> ranges = {range<token>::make_open_ended_both_sides()};
logger.debug("stream_hints: ranges={}", ranges);
auto sp = make_lw_shared<streaming::stream_plan>("Hints");
std::vector<sstring> column_families = { db::system_keyspace::HINTS };