Skip to content

Commit

Permalink
resolving conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
hwware committed May 23, 2023
1 parent b9ff259 commit 0c24af6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/cluster.c
Original file line number Diff line number Diff line change
Expand Up @@ -5093,11 +5093,11 @@ sds clusterGenNodeDescription(client *c, clusterNode *node, int use_pport) {
if (sdslen(node->hostname) == 0) {
ci = sdscatfmt(ci,",", 1);
}

/* Don't expose aux fields to any clients yet but do allow them
* to be persisted to nodes.conf */
if (c == NULL) {
for (int i = af_count-1; i >=0; i-) {
for (int i = af_count-1; i >=0; i--) {
if (auxFieldHandlers[i].isPresent(node)) {
ci = sdscatprintf(ci, ",%s=", auxFieldHandlers[i].field);
ci = auxFieldHandlers[i].getter(node, ci);
Expand Down
2 changes: 1 addition & 1 deletion tests/cluster/cluster.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ proc get_cluster_nodes {id {status "*"}} {
set args [split $l]
set node [dict create \
id [lindex $args 0] \
addr [lindex $args 1] \
addr [lindex $args 1]\
shard-id [lindex [split [lsearch -inline [split [lindex $args 1] ,] {shard-id=*}] =] 1]\
flags [split [lindex $args 2] ,] \
slaveof [lindex $args 3] \
Expand Down

0 comments on commit 0c24af6

Please sign in to comment.