Remove single node cluster validation check from benchmark (#266)

Allow redis-benchmark to run against single shard clusters. 

Signed-off-by: Harkrishn Patro <harkrisp@amazon.com>
This commit is contained in:
Harkrishn Patro 2024-04-08 21:20:10 -07:00 committed by GitHub
parent d89ef06ce5
commit 1aa13decf6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1787,7 +1787,7 @@ int main(int argc, char **argv) {
}
exit(1);
}
if (config.cluster_node_count <= 1) {
if (config.cluster_node_count == 0) {
fprintf(stderr, "Invalid cluster: %d node(s).\n",
config.cluster_node_count);
exit(1);