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
8885921d
Commit
8885921d
authored
Sep 18, 2017
by
Salvatore Sanfilippo
Committed by
GitHub
Sep 18, 2017
Browse files
Merge pull request #4311 from oranagra/aof_shutdown_flush
Flush append only buffers before existing.
parents
202c2ebe
b122cadc
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/server.c
View file @
8885921d
...
...
@@ -2536,8 +2536,9 @@ int prepareForShutdown(int flags) {
"There is a child rewriting the AOF. Killing it!"
);
kill
(
server
.
aof_child_pid
,
SIGUSR1
);
}
/* Append only file: fsync() the AOF a
nd
exit */
/* Append only file:
flush buffers and
fsync() the AOF a
t
exit */
serverLog
(
LL_NOTICE
,
"Calling fsync() on the AOF file."
);
flushAppendOnlyFile
(
1
);
aof_fsync
(
server
.
aof_fd
);
}
...
...
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