summaryrefslogtreecommitdiff
path: root/src/sort.c
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2015-07-26 15:29:53 +0200
committerantirez <antirez@gmail.com>2015-07-26 15:29:53 +0200
commit2d9e3eb107b6b6289d5e3a51a32b3a018c96103c (patch)
tree379b4a8c2498a9be22d2f2b9ea3970669ebe42e5 /src/sort.c
parent14ff572482cfe02c5ac61a1816cb8099d458e499 (diff)
downloadredis-2d9e3eb107b6b6289d5e3a51a32b3a018c96103c.tar.gz
RDMF: redisAssert -> serverAssert.
Diffstat (limited to 'src/sort.c')
-rw-r--r--src/sort.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/sort.c b/src/sort.c
index 6662913c6..a3b0b750c 100644
--- a/src/sort.c
+++ b/src/sort.c
@@ -416,7 +416,7 @@ void sortCommand(client *c) {
}
while(rangelen--) {
- redisAssertWithInfo(c,sortval,ln != NULL);
+ serverAssertWithInfo(c,sortval,ln != NULL);
ele = ln->obj;
vector[j].obj = ele;
vector[j].u.score = 0;
@@ -442,7 +442,7 @@ void sortCommand(client *c) {
} else {
redisPanic("Unknown type");
}
- redisAssertWithInfo(c,sortval,j == vectorlen);
+ serverAssertWithInfo(c,sortval,j == vectorlen);
/* Now it's time to load the right scores in the sorting vector */
if (dontsort == 0) {
@@ -475,7 +475,7 @@ void sortCommand(client *c) {
* far. We can just cast it */
vector[j].u.score = (long)byval->ptr;
} else {
- redisAssertWithInfo(c,sortval,1 != 1);
+ serverAssertWithInfo(c,sortval,1 != 1);
}
}
@@ -526,7 +526,7 @@ void sortCommand(client *c) {
}
} else {
/* Always fails */
- redisAssertWithInfo(c,sortval,sop->type == REDIS_SORT_GET);
+ serverAssertWithInfo(c,sortval,sop->type == REDIS_SORT_GET);
}
}
}
@@ -557,7 +557,7 @@ void sortCommand(client *c) {
decrRefCount(val);
} else {
/* Always fails */
- redisAssertWithInfo(c,sortval,sop->type == REDIS_SORT_GET);
+ serverAssertWithInfo(c,sortval,sop->type == REDIS_SORT_GET);
}
}
}