Skip to content

Commit

Permalink
Replace Dict with Rax for Cluster Nodes
Browse files Browse the repository at this point in the history
Replace Dict with Rax for Cluster Nodes and construct primaries list on the
go, instead of maintaining shards/masters list.

Signed-off-by: Ram Prasad Voleti <[email protected]>
  • Loading branch information
Ram Prasad Voleti committed Jul 5, 2024
1 parent 622a1bf commit 9b71434
Show file tree
Hide file tree
Showing 7 changed files with 209 additions and 264 deletions.
4 changes: 2 additions & 2 deletions src/cluster.c
Original file line number Diff line number Diff line change
Expand Up @@ -849,10 +849,10 @@ void clusterCommand(client *c) {
} else if (!strcasecmp(c->argv[1]->ptr, "slots") && c->argc == 2) {
/* CLUSTER SLOTS */
clusterCommandSlots(c);
} else if (!strcasecmp(c->argv[1]->ptr,"shards") && c->argc == 2) {
} else if (!strcasecmp(c->argv[1]->ptr, "shards") && c->argc == 2) {
/* CLUSTER SHARDS */
clusterCommandShards(c);
} else if (!strcasecmp(c->argv[1]->ptr,"info") && c->argc == 2) {
} else if (!strcasecmp(c->argv[1]->ptr, "info") && c->argc == 2) {
/* CLUSTER INFO */

sds info = genClusterInfoString();
Expand Down
Loading

0 comments on commit 9b71434

Please sign in to comment.