diff options
author | Salvatore Sanfilippo <antirez@gmail.com> | 2015-06-11 15:15:22 +0200 |
---|---|---|
committer | Salvatore Sanfilippo <antirez@gmail.com> | 2015-06-11 15:15:22 +0200 |
commit | 4b5a0f0376e122316f3f04709fd7c502b159428d (patch) | |
tree | 6b00736c9e389f24c6c57db9022e23dd883c2e64 | |
parent | 8366907bed1f8e798889f51ce46c8035a28a6cae (diff) | |
parent | 0dc6a5d497904776b3a6296b08207b917ef59bab (diff) | |
download | redis-4b5a0f0376e122316f3f04709fd7c502b159428d.tar.gz |
Merge pull request #2614 from linfangrong/patch-1
Update t_zset.c
-rw-r--r-- | src/t_zset.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/t_zset.c b/src/t_zset.c index 3a30b84d9..dbc561a93 100644 --- a/src/t_zset.c +++ b/src/t_zset.c @@ -1248,7 +1248,7 @@ void zaddGenericCommand(redisClient *c, int flags) { if (zobj == NULL) { if (xx) goto reply_to_client; /* No key + XX option: nothing to do. */ 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(); } else { |