MIGRATE +NOKEY error was missing the final CRLF causing a protocol error.

This commit is contained in:
antirez 2011-10-17 16:44:08 +02:00
parent bfbc16ae83
commit e0aab1fc79

View File

@ -1530,7 +1530,7 @@ void migrateCommand(redisClient *c) {
* nothing to migrate (for instance the key expired in the meantime), but
* we include such information in the reply string. */
if ((o = lookupKeyRead(c->db,c->argv[3])) == NULL) {
addReplySds(c,sdsnew("+NOKEY"));
addReplySds(c,sdsnew("+NOKEY\r\n"));
return;
}