File tree Expand file tree Collapse file tree 2 files changed +1
-3
lines changed Expand file tree Collapse file tree 2 files changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -25,10 +25,8 @@ TokenMap* TokenMap::from_partitioner(StringRef partitioner) {
2525 return new TokenMapImpl<Murmur3Partitioner>();
2626 } else if (ends_with (partitioner, RandomPartitioner::name ())) {
2727 return new TokenMapImpl<RandomPartitioner>();
28- return NULL ;
2928 } else if (ends_with (partitioner, ByteOrderedPartitioner::name ())) {
3029 return new TokenMapImpl<ByteOrderedPartitioner>();
31- return NULL ;
3230 } else {
3331 LOG_WARN (" Unsupported partitioner class '%s'" , partitioner.to_string ().c_str ());
3432 return NULL ;
Original file line number Diff line number Diff line change @@ -172,7 +172,7 @@ struct ReplicationFactor {
172172 size_t count;
173173 std::string name; // Used for logging the datacenter name
174174 bool operator ==(const ReplicationFactor& other) const {
175- return count == other.count ;
175+ return count == other.count && name == other. name ;
176176 }
177177};
178178
You can’t perform that action at this time.
0 commit comments