Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Redis-benchmark] Use IP from CLUSTER NODE reply for first node too (r…
…edis#8154) If we only has one node in cluster or before 8fdc857, we don't know myself ip, so we should use config.hostip for myself. However, we should use the IP from the command response to update node->ip if it exists and is different from config.hostip otherwise, when there's more than one node in cluster, if we use -h with virtual IP or DNS, benchmark doesn't show node real ip and port of myself even though it could get right IP and port by CLUSTER NODES command.
- Loading branch information