提交 df18ddbb 编写于 作者: B Benguang Zhao

enh: remove WAL log file corrupted completely

上级 56b32a77
......@@ -118,6 +118,8 @@ static FORCE_INLINE int64_t walScanLogGetLastVer(SWal* pWal) {
if (found == NULL) {
wError("WAL log file corrupted: no valid WAL record found. file: %s", fnameStr);
terrno = TSDB_CODE_WAL_FILE_CORRUPTED;
taosRemoveFile(fnameStr);
wWarn("vgId:%d, remove corrupted WAL log file: %s", pWal->cfg.vgId, fnameStr);
goto _err;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册