quicklist: fix the return value of quicklistCount
This commit is contained in:
parent
2869284e44
commit
664bbfe760
@ -149,7 +149,7 @@ REDIS_STATIC quicklistNode *quicklistCreateNode(void) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Return cached quicklist count */
|
/* Return cached quicklist count */
|
||||||
unsigned int quicklistCount(const quicklist *ql) { return ql->count; }
|
unsigned long quicklistCount(const quicklist *ql) { return ql->count; }
|
||||||
|
|
||||||
/* Free entire quicklist. */
|
/* Free entire quicklist. */
|
||||||
void quicklistRelease(quicklist *quicklist) {
|
void quicklistRelease(quicklist *quicklist) {
|
||||||
|
@ -154,7 +154,7 @@ int quicklistPopCustom(quicklist *quicklist, int where, unsigned char **data,
|
|||||||
void *(*saver)(unsigned char *data, unsigned int sz));
|
void *(*saver)(unsigned char *data, unsigned int sz));
|
||||||
int quicklistPop(quicklist *quicklist, int where, unsigned char **data,
|
int quicklistPop(quicklist *quicklist, int where, unsigned char **data,
|
||||||
unsigned int *sz, long long *slong);
|
unsigned int *sz, long long *slong);
|
||||||
unsigned int quicklistCount(const quicklist *ql);
|
unsigned long quicklistCount(const quicklist *ql);
|
||||||
int quicklistCompare(unsigned char *p1, unsigned char *p2, int p2_len);
|
int quicklistCompare(unsigned char *p1, unsigned char *p2, int p2_len);
|
||||||
size_t quicklistGetLzf(const quicklistNode *node, void **data);
|
size_t quicklistGetLzf(const quicklistNode *node, void **data);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user