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
d982f443
Commit
d982f443
authored
Aug 01, 2016
by
Qu Chen
Committed by
antirez
Aug 02, 2016
Browse files
Fix a bug to delay bgsave while AOF rewrite in progress for replication
parent
9424fe45
Changes
1
Show whitespace changes
Inline
Side-by-side
src/replication.c
View file @
d982f443
...
@@ -676,7 +676,7 @@ void syncCommand(client *c) {
...
@@ -676,7 +676,7 @@ void syncCommand(client *c) {
/* Target is disk (or the slave is not capable of supporting
/* Target is disk (or the slave is not capable of supporting
* diskless replication) and we don't have a BGSAVE in progress,
* diskless replication) and we don't have a BGSAVE in progress,
* let's start one. */
* let's start one. */
if
(
server
.
aof_child_pid
!
=
-
1
)
{
if
(
server
.
aof_child_pid
=
=
-
1
)
{
startBgsaveForReplication
(
c
->
slave_capa
);
startBgsaveForReplication
(
c
->
slave_capa
);
}
else
{
}
else
{
serverLog
(
LL_NOTICE
,
serverLog
(
LL_NOTICE
,
...
...
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