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
2316bb3b
Commit
2316bb3b
authored
Jan 15, 2010
by
antirez
Browse files
minor fix
parent
054e426d
Changes
1
Show whitespace changes
Inline
Side-by-side
redis.c
View file @
2316bb3b
...
...
@@ -3011,7 +3011,12 @@ static int rdbSave(char *filename) {
int j;
time_t now = time(NULL);
waitEmptyIOJobsQueue(); /* Otherwise other threads may fseek() the swap */
/* Wait for I/O therads to terminate, just in case this is a
* foreground-saving, to avoid seeking the swap file descriptor at the
* same time. */
if (server.vm_enabled)
waitEmptyIOJobsQueue();
snprintf(tmpfile,256,"temp-%d.rdb", (int) getpid());
fp = fopen(tmpfile,"w");
if (!fp) {
...
...
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