mirror of
https://github.com/fluencelabs/redis
synced 2025-06-26 07:21:35 +00:00
WATCH is now affected only when write commands actually modify the key content
This commit is contained in:
@ -364,6 +364,7 @@ void sortCommand(redisClient *c) {
|
||||
* SORT result is empty a new key is set and maybe the old content
|
||||
* replaced. */
|
||||
server.dirty += 1+outputlen;
|
||||
touchWatchedKey(c->db,storekey);
|
||||
addReplySds(c,sdscatprintf(sdsempty(),":%d\r\n",outputlen));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user