提交 2316bb3b 编写于 作者: A antirez

minor fix

上级 054e426d
......@@ -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) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册