dht: Implement operator<< for decorated_key
This commit is contained in:
@@ -158,6 +158,10 @@ std::ostream& operator<<(std::ostream& out, const token& t) {
|
||||
return out;
|
||||
}
|
||||
|
||||
std::ostream& operator<<(std::ostream& out, const decorated_key& dk) {
|
||||
return out << "{key: " << dk._key << ", token:" << dk._token << "}";
|
||||
}
|
||||
|
||||
// FIXME: get from global config
|
||||
// FIXME: make it per-keyspace
|
||||
murmur3_partitioner default_partitioner;
|
||||
|
||||
@@ -170,6 +170,8 @@ bool operator!=(const decorated_key& lht, const decorated_key& rht);
|
||||
|
||||
std::ostream& operator<<(std::ostream& out, const token& t);
|
||||
|
||||
std::ostream& operator<<(std::ostream& out, const decorated_key& t);
|
||||
|
||||
i_partitioner& global_partitioner();
|
||||
|
||||
} // dht
|
||||
|
||||
Reference in New Issue
Block a user