未验证 提交 728881a0 编写于 作者: S slguan 提交者: GitHub

Merge pull request #1652 from taosdata/enhance/sdbWal

potential memory leak if no any wal files
......@@ -208,6 +208,8 @@ int walRestore(void *handle, void *pVnode, int (*writeFp)(void *, void *, int))
}
}
closedir(dir);
if (count == 0) {
if (pWal->keep) code = walRenew(pWal);
return code;
......@@ -248,8 +250,6 @@ int walRestore(void *handle, void *pVnode, int (*writeFp)(void *, void *, int))
}
}
closedir(dir);
return code;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册