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
e09e31b1
Commit
e09e31b1
authored
Nov 24, 2016
by
antirez
Browse files
PSYNC2: on transient error jump to error, not write_error.
parent
1f55170b
Changes
1
Show whitespace changes
Inline
Side-by-side
src/replication.c
View file @
e09e31b1
...
@@ -1774,7 +1774,7 @@ void syncWithMaster(aeEventLoop *el, int fd, void *privdata, int mask) {
...
@@ -1774,7 +1774,7 @@ void syncWithMaster(aeEventLoop *el, int fd, void *privdata, int mask) {
* from scratch later, so go to the error path. This happens when
* from scratch later, so go to the error path. This happens when
* the server is loading the dataset or is not connected with its
* the server is loading the dataset or is not connected with its
* master and so forth. */
* master and so forth. */
if
(
psync_result
==
PSYNC_TRY_LATER
)
goto
write_
error
;
if
(
psync_result
==
PSYNC_TRY_LATER
)
goto
error
;
/* Note: if PSYNC does not return WAIT_REPLY, it will take care of
/* Note: if PSYNC does not return WAIT_REPLY, it will take care of
* uninstalling the read handler from the file descriptor. */
* uninstalling the read handler from the file descriptor. */
...
...
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