mirror of
https://github.com/scylladb/scylladb.git
synced 2026-04-25 11:00:35 +00:00
Recently, we added full position-in-partition support to alternator's paging cookie, so it can support stopping at arbitrary positions. This support however is only really needed when tables have range tombstones and alternator tables never have them. So to avoid having to make the new fields in 'ExclusiveStartKey' reserved, we avoid filling these in when reading an alternator table, as in this case it is safe to assume the position is `after_key($clustring_key)`. We do include these new members however when reading CQL tables through alternator. As this is only supported for system tables, we can also be sure that the elaborate names we used for these fields are enough to avoid naming clashes. The condition in the code implementing this is actually even more general: it only includes the region/weight members when the position differs from that of a normal alternator one.