DB API refactoring. The changes were designed together with Pieter Noordhuis.

This commit is contained in:
antirez
2011-06-14 15:34:27 +02:00
parent 322ad08697
commit 307868e149
5 changed files with 67 additions and 69 deletions

View File

@ -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;
touchWatchedKey(c->db,storekey);
addReplyLongLong(c,outputlen);
}