提交 a8343afd 编写于 作者: J Jeff Tao

open the wal file even no any wal files when keep is set to 1

上级 9e0f3af6
......@@ -208,7 +208,10 @@ int walRestore(void *handle, void *pVnode, int (*writeFp)(void *, void *, int))
}
}
if (count == 0) return 0;
if (count == 0) {
if (pWal->keep) code = walRenew(pWal);
return code;
}
if ( count != (maxId-minId+1) ) {
wError("wal:%s, messed up, count:%d max:%d min:%d", opath, count, maxId, minId);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册