X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/484354ff95e6e1b93552ef9576422709a1c739c2..da386cdf337a79b6734b58d3c5e426741e49c043:/src/db.c?ds=sidebyside diff --git a/src/db.c b/src/db.c index 670e2bce..354f9045 100644 --- a/src/db.c +++ b/src/db.c @@ -317,7 +317,7 @@ void existsCommand(redisClient *c) { void selectCommand(redisClient *c) { int id = atoi(c->argv[1]->ptr); - if (server.cluster_enabled) { + if (server.cluster_enabled && id != 0) { addReplyError(c,"SELECT is not allowed in cluster mode"); return; }