]> git.saurik.com Git - redis.git/commitdiff
rename zslDeleteRange to zslDeleteRangeByScore (to differentiate between deleting...
authorPieter Noordhuis <pcnoordhuis@gmail.com>
Thu, 4 Mar 2010 16:50:25 +0000 (17:50 +0100)
committerPieter Noordhuis <pcnoordhuis@gmail.com>
Thu, 4 Mar 2010 16:50:25 +0000 (17:50 +0100)
redis.c

diff --git a/redis.c b/redis.c
index 0e743c3b8ef6fa33c787f7a13cb1cc0e8b730ad2..f7779cebe42ae1f7eb2846d0bca4d582945f8e50 100644 (file)
--- a/redis.c
+++ b/redis.c
@@ -5008,7 +5008,7 @@ static int zslDelete(zskiplist *zsl, double score, robj *obj) {
  * Min and mx are inclusive, so a score >= min || score <= max is deleted.
  * Note that this function takes the reference to the hash table view of the
  * sorted set, in order to remove the elements from the hash table too. */
-static unsigned long zslDeleteRange(zskiplist *zsl, double min, double max, dict *dict) {
+static unsigned long zslDeleteRangeByScore(zskiplist *zsl, double min, double max, dict *dict) {
     zskiplistNode *update[ZSKIPLIST_MAXLEVEL], *x;
     unsigned long removed = 0;
     int i;
@@ -5317,7 +5317,7 @@ static void zremrangebyscoreCommand(redisClient *c) {
             return;
         }
         zs = zsetobj->ptr;
-        deleted = zslDeleteRange(zs->zsl,min,max,zs->dict);
+        deleted = zslDeleteRangeByScore(zs->zsl,min,max,zs->dict);
         if (htNeedsResize(zs->dict)) dictResize(zs->dict);
         server.dirty += deleted;
         addReplySds(c,sdscatprintf(sdsempty(),":%lu\r\n",deleted));