X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/7c0e1b53c4c4f646c788fcd09666e1c321c1d134..b147cb9e1ac77e021228f3343a59db1da7c88789:/src/sort.c diff --git a/src/sort.c b/src/sort.c index ff275c95..e4fe130c 100644 --- a/src/sort.c +++ b/src/sort.c @@ -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); }