Merge pull request #28574 from taosdata/fix/TD-32703-add-wal-log

fix/TD-32703-add-wal-log
This commit is contained in:
Hongze Cheng 2024-10-31 09:09:02 +08:00 committed by GitHub
commit c343f336fa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 3 deletions

View File

@ -1058,6 +1058,8 @@ int32_t walSaveMeta(SWal* pWal) {
TAOS_CHECK_GOTO(TAOS_SYSTEM_ERROR(errno), &lino, _err); TAOS_CHECK_GOTO(TAOS_SYSTEM_ERROR(errno), &lino, _err);
} }
wInfo("vgId:%d, save meta file: %s, firstVer:%" PRId64 ", lastVer:%" PRId64, pWal->cfg.vgId, tmpFnameStr,
pWal->vers.firstVer, pWal->vers.lastVer);
// rename it // rename it
n = walBuildMetaName(pWal, metaVer + 1, fnameStr); n = walBuildMetaName(pWal, metaVer + 1, fnameStr);
@ -1155,8 +1157,8 @@ int32_t walLoadMeta(SWal* pWal) {
(void)taosCloseFile(&pFile); (void)taosCloseFile(&pFile);
taosMemoryFree(buf); taosMemoryFree(buf);
wInfo("vgId:%d, load meta file: %s, fileInfoSet size:%d", pWal->cfg.vgId, fnameStr, wInfo("vgId:%d, load meta file: %s, firstVer:%" PRId64 ", lastVer:%" PRId64 ", fileInfoSet size:%d", pWal->cfg.vgId,
(int32_t)taosArrayGetSize(pWal->fileInfoSet)); fnameStr, pWal->vers.firstVer, pWal->vers.lastVer, (int32_t)taosArrayGetSize(pWal->fileInfoSet));
printFileSet(pWal->fileInfoSet); printFileSet(pWal->fileInfoSet);
TAOS_RETURN(code); TAOS_RETURN(code);

View File

@ -18,7 +18,7 @@ from tmqCommon import *
class TDTestCase: class TDTestCase:
updatecfgDict = {'sDebugFlag':143} updatecfgDict = {'sDebugFlag':143, 'wDebugFlag':143}
def __init__(self): def __init__(self):
self.vgroups = 1 self.vgroups = 1
self.ctbNum = 10 self.ctbNum = 10