Commit d4a7c9e1 authored by linfangrong's avatar linfangrong Committed by antirez
Browse files

Update t_zset.c

parent 4e8759c6
...@@ -1248,7 +1248,7 @@ void zaddGenericCommand(redisClient *c, int flags) { ...@@ -1248,7 +1248,7 @@ void zaddGenericCommand(redisClient *c, int flags) {
if (zobj == NULL) { if (zobj == NULL) {
if (xx) goto reply_to_client; /* No key + XX option: nothing to do. */ if (xx) goto reply_to_client; /* No key + XX option: nothing to do. */
if (server.zset_max_ziplist_entries == 0 || if (server.zset_max_ziplist_entries == 0 ||
server.zset_max_ziplist_value < sdslen(c->argv[3]->ptr)) server.zset_max_ziplist_value < sdslen(c->argv[scoreidx+1]->ptr))
{ {
zobj = createZsetObject(); zobj = createZsetObject();
} else { } else {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment