mirror of
https://github.com/fluencelabs/redis
synced 2025-06-12 16:51:22 +00:00
DB API refactoring. The changes were designed together with Pieter Noordhuis.
This commit is contained in:
@ -366,12 +366,12 @@ void sortCommand(redisClient *c) {
|
||||
}
|
||||
}
|
||||
}
|
||||
dbReplace(c->db,storekey,sobj);
|
||||
setKey(c->db,storekey,sobj);
|
||||
decrRefCount(sobj);
|
||||
/* Note: we add 1 because the DB is dirty anyway since even if the
|
||||
* SORT result is empty a new key is set and maybe the old content
|
||||
* replaced. */
|
||||
server.dirty += 1+outputlen;
|
||||
signalModifiedKey(c->db,storekey);
|
||||
addReplyLongLong(c,outputlen);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user