mirror of
https://github.com/scylladb/scylladb.git
synced 2026-06-07 07:23:15 +00:00
Since token representation is fixed now, all the partitioners will share the sharding logic. It makes sense now to keep the logic in common super class and separate header that's included only in i_partitioner.cc. shard_of and token_for_next_shard are now implemented in i_partitioner. They would be non-virtual but we have to keep them virtual because one test is overriding them to enforce some specific sharding. Signed-off-by: Piotr Jastrzebski <piotr@scylladb.com>