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
f63bbb43
Unverified
Commit
f63bbb43
authored
Mar 12, 2019
by
Salvatore Sanfilippo
Committed by
GitHub
Mar 12, 2019
Browse files
Merge pull request #5920 from chendq8/aofrewrite
remove temp-rewriteaof-xxx.aof when interrupt aofrewrite
parents
8a46d32b
3621223f
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/aof.c
View file @
f63bbb43
...
@@ -1611,6 +1611,9 @@ void aofRemoveTempFile(pid_t childpid) {
...
@@ -1611,6 +1611,9 @@ void aofRemoveTempFile(pid_t childpid) {
snprintf
(
tmpfile
,
256
,
"temp-rewriteaof-bg-%d.aof"
,
(
int
)
childpid
);
snprintf
(
tmpfile
,
256
,
"temp-rewriteaof-bg-%d.aof"
,
(
int
)
childpid
);
unlink
(
tmpfile
);
unlink
(
tmpfile
);
snprintf
(
tmpfile
,
256
,
"temp-rewriteaof-%d.aof"
,
(
int
)
childpid
);
unlink
(
tmpfile
);
}
}
/* Update the server.aof_current_size field explicitly using stat(2)
/* Update the server.aof_current_size field explicitly using stat(2)
...
...
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