X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/74a640492fe2547ff6737d598b32896840c2bd1d..a7b058dae612ad3ab31a2b2d6f07e5ff7fe06618:/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; }