mirror of
https://github.com/fluencelabs/redis
synced 2025-06-28 00:11:33 +00:00
RESTORE: reply with -BUSYKEY special error code.
The error when the target key is busy was a generic one, while it makes sense to be able to distinguish between the target key busy error and the others easily.
This commit is contained in:
@ -1316,6 +1316,8 @@ void createSharedObjects(void) {
|
||||
"-EXECABORT Transaction discarded because of previous errors.\r\n"));
|
||||
shared.noreplicaserr = createObject(REDIS_STRING,sdsnew(
|
||||
"-NOREPLICAS Not enough good slaves to write.\r\n"));
|
||||
shared.busykeyerr = createObject(REDIS_STRING,sdsnew(
|
||||
"-BUSYKEY Target key name already exists.\r\n"));
|
||||
shared.space = createObject(REDIS_STRING,sdsnew(" "));
|
||||
shared.colon = createObject(REDIS_STRING,sdsnew(":"));
|
||||
shared.plus = createObject(REDIS_STRING,sdsnew("+"));
|
||||
|
Reference in New Issue
Block a user