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
b3e3d0d7
Commit
b3e3d0d7
authored
Jan 11, 2010
by
antirez
Browse files
removed a bug introduced with non blocking VM
parent
f11b8647
Changes
1
Show whitespace changes
Inline
Side-by-side
redis.c
View file @
b3e3d0d7
...
@@ -1649,7 +1649,6 @@ static void freeClient(redisClient *c) {
...
@@ -1649,7 +1649,6 @@ static void freeClient(redisClient *c) {
aeDeleteFileEvent
(
server
.
el
,
c
->
fd
,
AE_READABLE
);
aeDeleteFileEvent
(
server
.
el
,
c
->
fd
,
AE_READABLE
);
aeDeleteFileEvent
(
server
.
el
,
c
->
fd
,
AE_WRITABLE
);
aeDeleteFileEvent
(
server
.
el
,
c
->
fd
,
AE_WRITABLE
);
listRelease
(
c
->
reply
);
listRelease
(
c
->
reply
);
listRelease
(
c
->
io_keys
);
freeClientArgv
(
c
);
freeClientArgv
(
c
);
close
(
c
->
fd
);
close
(
c
->
fd
);
/* Remove from the list of clients */
/* Remove from the list of clients */
...
@@ -1662,6 +1661,7 @@ static void freeClient(redisClient *c) {
...
@@ -1662,6 +1661,7 @@ static void freeClient(redisClient *c) {
if
(
ln
)
listDelNode
(
server
.
io_clients
,
ln
);
if
(
ln
)
listDelNode
(
server
.
io_clients
,
ln
);
listRelease
(
c
->
io_keys
);
listRelease
(
c
->
io_keys
);
}
}
listRelease
(
c
->
io_keys
);
/* Other cleanup */
/* Other cleanup */
if
(
c
->
flags
&
REDIS_SLAVE
)
{
if
(
c
->
flags
&
REDIS_SLAVE
)
{
if
(
c
->
replstate
==
REDIS_REPL_SEND_BULK
&&
c
->
repldbfd
!=
-
1
)
if
(
c
->
replstate
==
REDIS_REPL_SEND_BULK
&&
c
->
repldbfd
!=
-
1
)
...
...
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