Merge pull request #29434 from taosdata/enh/3.0/TD-33266-2
Fix(cover):fix some review errors in pr 29417.
This commit is contained in:
commit
3c7566f057
|
@ -226,7 +226,7 @@ FORCE_INLINE int32_t walScanLogGetLastVer(SWal* pWal, int32_t fileIdx, int64_t*
|
||||||
|
|
||||||
_err:
|
_err:
|
||||||
if (code != 0) {
|
if (code != 0) {
|
||||||
wError("vgId:%d, failed to scan log file due to %s, file:%s", pWal->cfg.vgId, strerror(errno), fnameStr);
|
wError("vgId:%d, failed to scan log file due to %s, file:%s", pWal->cfg.vgId, tstrerror(terrno), fnameStr);
|
||||||
}
|
}
|
||||||
taosCloseFile(&pFile);
|
taosCloseFile(&pFile);
|
||||||
taosMemoryFree(buf);
|
taosMemoryFree(buf);
|
||||||
|
@ -1063,7 +1063,7 @@ int32_t walLoadMeta(SWal* pWal) {
|
||||||
}
|
}
|
||||||
// read metafile
|
// read metafile
|
||||||
int64_t fileSize = 0;
|
int64_t fileSize = 0;
|
||||||
TAOS_CHECK_EXIT(taosStatFile(fnameStr, &fileSize, NULL, NULL) != 0);
|
TAOS_CHECK_EXIT(taosStatFile(fnameStr, &fileSize, NULL, NULL));
|
||||||
if (fileSize == 0) {
|
if (fileSize == 0) {
|
||||||
code = taosRemoveFile(fnameStr);
|
code = taosRemoveFile(fnameStr);
|
||||||
if (code) {
|
if (code) {
|
||||||
|
|
Loading…
Reference in New Issue