mirror of
https://github.com/scylladb/scylladb.git
synced 2026-04-21 09:00:35 +00:00
This map will contain the (internal) IPs corresponding to specific Nodes. The mapping is also stored in the system.peers table. So, instead of always connecting to external IP messaging_service::get_rpc_client() will query _preferred_ip_cache and only if there is no entry for a given Node will connect to the external IP. We will call for init_local_preferred_ip_cache() at the end of system table init. Signed-off-by: Vlad Zolotarov <vladz@cloudius-systems.com> New in v2: - Improved the _preferred_ip_cache description. - Code styling issues. New in v3: - Make get_internal_ip() public. - get_rpc_client(): return a get_preferred_ip() usage dropped in v2 by mistake during rebase.