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
d7740fc8
Commit
d7740fc8
authored
Jan 03, 2013
by
antirez
Browse files
Better error reporting when fd event creation fails.
parent
e9261b1e
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/networking.c
View file @
d7740fc8
...
...
@@ -517,7 +517,9 @@ void copyClientOutputBuffer(redisClient *dst, redisClient *src) {
static
void
acceptCommonHandler
(
int
fd
,
int
flags
)
{
redisClient
*
c
;
if
((
c
=
createClient
(
fd
))
==
NULL
)
{
redisLog
(
REDIS_WARNING
,
"Error allocating resources for the client"
);
redisLog
(
REDIS_WARNING
,
"Error registering fd event for the new client: %s (fd=%d)"
,
strerror
(
errno
),
fd
);
close
(
fd
);
/* May be already closed, just ignore errors */
return
;
}
...
...
src/replication.c
View file @
d7740fc8
...
...
@@ -636,7 +636,9 @@ void syncWithMaster(aeEventLoop *el, int fd, void *privdata, int mask) {
if
(
aeCreateFileEvent
(
server
.
el
,
fd
,
AE_READABLE
,
readSyncBulkPayload
,
NULL
)
==
AE_ERR
)
{
redisLog
(
REDIS_WARNING
,
"Can't create readable event for SYNC"
);
redisLog
(
REDIS_WARNING
,
"Can't create readable event for SYNC: %s (fd=%d)"
,
strerror
(
errno
),
fd
);
goto
error
;
}
...
...
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