mirror of
https://github.com/scylladb/scylladb.git
synced 2026-05-12 19:02:12 +00:00
We already have code to return min() for the minimum and maximum tokens in long_token() and raw(), so instead of using code to return it, just make sure to set it in the _data member. Note that although this change affect serialization, the existing codebase ignores the deserialized bytes and places a constant (0 before this patch, or min() with it) in _data for non-key (minumum or maximum) tokens. Signed-off-by: Benny Halevy <bhalevy@scylladb.com>