view: get_view_natural_endpoint: clarify documentation

"self-pairing" is enabled only when use_legacy_self_pairing
is enabled.  That is currently unclear in the documentation
comment for this function.

Signed-off-by: Benny Halevy <bhalevy@scylladb.com>
This commit is contained in:
Benny Halevy
2024-11-05 13:41:57 +02:00
parent 6d4de30a3a
commit 97f85e52f7

View File

@@ -1723,8 +1723,10 @@ bool should_generate_view_updates_on_this_shard(const schema_ptr& base, const lo
//
// If the keyspace's replication strategy is a NetworkTopologyStrategy,
// we pair only nodes in the same datacenter.
// If one of the base replicas also happens to be a view replica, it is
// paired with itself (with the other nodes paired by order in the list
//
// When use_legacy_self_pairing is enabled, if one of the base replicas
// also happens to be a view replica, it is paired with itself
// (with the other nodes paired by order in the list
// after taking this node out).
//
// If the assumption that the given base token belongs to this replica