mirror of
https://github.com/fluencelabs/redis
synced 2025-03-19 09:00:51 +00:00
minor fix
This commit is contained in:
parent
054e426dbd
commit
2316bb3b42
7
redis.c
7
redis.c
@ -3011,7 +3011,12 @@ static int rdbSave(char *filename) {
|
|||||||
int j;
|
int j;
|
||||||
time_t now = time(NULL);
|
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());
|
snprintf(tmpfile,256,"temp-%d.rdb", (int) getpid());
|
||||||
fp = fopen(tmpfile,"w");
|
fp = fopen(tmpfile,"w");
|
||||||
if (!fp) {
|
if (!fp) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user