Skip to content

Commit 6cf69a4

Browse files
authored
valkey-cli: remove RESP version assertion from getDatabases() (#2068)
The assertion fails in cluster manager mode, where the config doesn't apply. Fixes test failures when RESP3 is enforced and the cli runs in cluster mode. fixes #2053 Signed-off-by: xbasel <103044017+xbasel@users.noreply.github.com>
1 parent 2205bf9 commit 6cf69a4

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/valkey-cli.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8745,7 +8745,6 @@ static int getDatabases(valkeyContext *ctx) {
87458745
fprintf(stderr, "%s fails: %s, use default value %d instead\n",
87468746
config.cluster_mode ? cluster : standalone, reply->str, dbnum);
87478747
} else {
8748-
assert(reply->type == (config.current_resp3 ? VALKEY_REPLY_MAP : VALKEY_REPLY_ARRAY));
87498748
assert(reply->elements == 2);
87508749
dbnum = atoi(reply->element[1]->str);
87518750
}

0 commit comments

Comments
 (0)