Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
cc4c964b
Commit
cc4c964b
authored
Mar 09, 2011
by
Pieter Noordhuis
Browse files
Fix used function in ZCARD
parent
a669d5e9
Changes
1
Show whitespace changes
Inline
Side-by-side
src/t_zset.c
View file @
cc4c964b
...
...
@@ -451,6 +451,7 @@ int zzlCompareElements(unsigned char *eptr, unsigned char *cstr, unsigned int cl
unsigned int zzlLength(robj *zobj) {
unsigned char *zl = zobj->ptr;
redisAssert(zobj->encoding == REDIS_ENCODING_ZIPLIST);
return ziplistLen(zl)/2;
}
...
...
@@ -1602,7 +1603,7 @@ void zcardCommand(redisClient *c) {
if ((zobj = lookupKeyReadOrReply(c,key,shared.czero)) == NULL ||
checkType(c,zobj,REDIS_ZSET)) return;
addReplyLongLong
(
c
,
z
zl
Length
(
zobj
));
addReplyLongLong(c,z
s
Length(zobj));
}
void zscoreCommand(redisClient *c) {
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment