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
d1b54c46
Commit
d1b54c46
authored
Oct 17, 2014
by
antirez
Browse files
Diskless replication: don't enter the read-payload branch forever.
parent
3b670684
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/replication.c
View file @
d1b54c46
...
...
@@ -864,6 +864,9 @@ void readSyncBulkPayload(aeEventLoop *el, int fd, void *privdata, int mask) {
usemark
=
1
;
memcpy
(
eofmark
,
buf
+
5
,
REDIS_RUN_ID_SIZE
);
memset
(
lastbytes
,
0
,
REDIS_RUN_ID_SIZE
);
/* Set any repl_transfer_size to avoid entering this code path
* at the next call. */
server
.
repl_transfer_size
=
0
;
redisLog
(
REDIS_NOTICE
,
"MASTER <-> SLAVE sync: receiving streamed RDB from master"
);
}
else
{
...
...
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