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
dc858469
Commit
dc858469
authored
Jun 01, 2014
by
zionwu
Browse files
fix issue 1787
parent
39603a7e
Changes
1
Show whitespace changes
Inline
Side-by-side
src/t_zset.c
View file @
dc858469
...
@@ -1333,6 +1333,7 @@ void zremCommand(redisClient *c) {
...
@@ -1333,6 +1333,7 @@ void zremCommand(redisClient *c) {
zobj
->
ptr
=
zzlDelete
(
zobj
->
ptr
,
eptr
);
zobj
->
ptr
=
zzlDelete
(
zobj
->
ptr
,
eptr
);
if
(
zzlLength
(
zobj
->
ptr
)
==
0
)
{
if
(
zzlLength
(
zobj
->
ptr
)
==
0
)
{
dbDelete
(
c
->
db
,
key
);
dbDelete
(
c
->
db
,
key
);
keyremoved
=
1
;
break
;
break
;
}
}
}
}
...
@@ -1356,6 +1357,7 @@ void zremCommand(redisClient *c) {
...
@@ -1356,6 +1357,7 @@ void zremCommand(redisClient *c) {
if
(
htNeedsResize
(
zs
->
dict
))
dictResize
(
zs
->
dict
);
if
(
htNeedsResize
(
zs
->
dict
))
dictResize
(
zs
->
dict
);
if
(
dictSize
(
zs
->
dict
)
==
0
)
{
if
(
dictSize
(
zs
->
dict
)
==
0
)
{
dbDelete
(
c
->
db
,
key
);
dbDelete
(
c
->
db
,
key
);
keyremoved
=
1
;
break
;
break
;
}
}
}
}
...
...
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