Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
896cf1a9
Commit
896cf1a9
authored
Dec 18, 2017
by
heqin
Committed by
antirez
Jan 18, 2018
Browse files
fixbug for #4545 dead loop aof rewrite
parent
5abb12e0
Changes
1
Show whitespace changes
Inline
Side-by-side
src/server.c
View file @
896cf1a9
...
...
@@ -1103,7 +1103,9 @@ int serverCron(struct aeEventLoop *eventLoop, long long id, void *clientData) {
}
/* Trigger an AOF rewrite if needed */
if
(
server
.
rdb_child_pid
==
-
1
&&
// If AOF disabled, we don't rewrite AOF file.
if
(
server
.
aof_fd
!=
-
1
&&
server
.
rdb_child_pid
==
-
1
&&
server
.
aof_child_pid
==
-
1
&&
server
.
aof_rewrite_perc
&&
server
.
aof_current_size
>
server
.
aof_rewrite_min_size
)
...
...
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