mirror of
https://github.com/scylladb/scylladb.git
synced 2026-04-21 17:10:35 +00:00
Scylla inherited a concept of partitioners that preserve order of keys from the origin but it is not used for anything. Moreover, none of the existing partitioners preserves keys order. The only partitioner that did this in the past was ByteOrderedPartitioner and Scylla does not support it any more. For a partitioner to preserve an order of the keys means that if there are two keys A and B such that A < B then token(A) < token(B) where token(X) isa token the partitioner assignes to key X. This patch removes dht::i_partitioner::preserves_order with all its overrides. The only place that was using this member function was a check in thrift server and it is safe to remove the check because the check was only done to differentiate the error message for partitioners that do and do not preserve the order of the keys. Signed-off-by: Piotr Jastrzebski <piotr@scylladb.com>