Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
token_metadata: use static ring version
For generating unique _ring_version. Currently when we clone a mutable token_metadata_ptr it remains with the same _ring_version and the ring version is updated only when the topology changes. To be able to distinguish these traqnsient copies from the ones that got applied, be stricter about the ring version and change it to a unique number using a static counter. Next patch will update the ring version (and consequently invalidate the cached_endpoints on the replication strategy) every time the token_metadata changes, not only when the topology changes. Note that the _cached_endpoints will go away once the transition to effective_replication_map is finished, so this will not degrade performance. Signed-off-by: Benny Halevy <bhalevy@scylladb.com>
- Loading branch information