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
3621223f
Commit
3621223f
authored
Mar 12, 2019
by
chendianqiang
Browse files
remove temp-rewriteaof-xxx.aof when interrupt aofrewrite
parent
49816941
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/aof.c
View file @
3621223f
...
@@ -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