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
a27befc4
Commit
a27befc4
authored
Oct 27, 2014
by
antirez
Browse files
Diskless replication: log BGSAVE delay only when it is non-zero.
parent
3b9a9798
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/replication.c
View file @
a27befc4
...
@@ -528,7 +528,8 @@ void syncCommand(redisClient *c) {
...
@@ -528,7 +528,8 @@ void syncCommand(redisClient *c) {
* replicationCron() since we want to delay its start a
* replicationCron() since we want to delay its start a
* few seconds to wait for more slaves to arrive. */
* few seconds to wait for more slaves to arrive. */
c
->
replstate
=
REDIS_REPL_WAIT_BGSAVE_START
;
c
->
replstate
=
REDIS_REPL_WAIT_BGSAVE_START
;
redisLog
(
REDIS_NOTICE
,
"Delay next BGSAVE for SYNC"
);
if
(
server
.
repl_diskless_sync_delay
)
redisLog
(
REDIS_NOTICE
,
"Delay next BGSAVE for SYNC"
);
}
else
{
}
else
{
/* Ok we don't have a BGSAVE in progress, let's start one. */
/* Ok we don't have a BGSAVE in progress, let's start one. */
if
(
startBgsaveForReplication
()
!=
REDIS_OK
)
{
if
(
startBgsaveForReplication
()
!=
REDIS_OK
)
{
...
...
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