mirror of
https://github.com/fluencelabs/redis
synced 2025-06-12 16:51:22 +00:00
replaced redisAssert() with redisAssertWithInfo() in a shitload of places.
This commit is contained in:
11
src/sort.c
11
src/sort.c
@ -247,7 +247,7 @@ void sortCommand(redisClient *c) {
|
||||
} else {
|
||||
redisPanic("Unknown type");
|
||||
}
|
||||
redisAssert(j == vectorlen);
|
||||
redisAssertWithInfo(c,sortval,j == vectorlen);
|
||||
|
||||
/* Now it's time to load the right scores in the sorting vector */
|
||||
if (dontsort == 0) {
|
||||
@ -273,7 +273,7 @@ void sortCommand(redisClient *c) {
|
||||
* far. We can just cast it */
|
||||
vector[j].u.score = (long)byval->ptr;
|
||||
} else {
|
||||
redisAssert(1 != 1);
|
||||
redisAssertWithInfo(c,sortval,1 != 1);
|
||||
}
|
||||
}
|
||||
|
||||
@ -330,7 +330,8 @@ void sortCommand(redisClient *c) {
|
||||
decrRefCount(val);
|
||||
}
|
||||
} else {
|
||||
redisAssert(sop->type == REDIS_SORT_GET); /* always fails */
|
||||
/* Always fails */
|
||||
redisAssertWithInfo(c,sortval,sop->type == REDIS_SORT_GET);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -360,8 +361,8 @@ void sortCommand(redisClient *c) {
|
||||
listTypePush(sobj,val,REDIS_TAIL);
|
||||
decrRefCount(val);
|
||||
} else {
|
||||
/* always fails */
|
||||
redisAssert(sop->type == REDIS_SORT_GET);
|
||||
/* Always fails */
|
||||
redisAssertWithInfo(c,sortval,sop->type == REDIS_SORT_GET);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user