Remove the wrong comments.

This commit is contained in:
xiao-77 2024-11-07 17:44:25 +08:00
parent 4f9fa3bb3e
commit badc1037a9
1 changed files with 3 additions and 3 deletions

View File

@ -294,9 +294,9 @@ int32_t walRollback(SWal *pWal, int64_t ver) {
static int32_t walRollImpl(SWal *pWal) {
int32_t code = 0, lino = 0;
// if (pWal->cfg.level == TAOS_WAL_SKIP && pWal->pIdxFile != NULL && pWal->pLogFile != NULL) {
// TAOS_RETURN(TSDB_CODE_SUCCESS);
// }
if (pWal->cfg.level == TAOS_WAL_SKIP && pWal->pIdxFile != NULL && pWal->pLogFile != NULL) {
TAOS_RETURN(TSDB_CODE_SUCCESS);
}
if (pWal->pIdxFile != NULL) {
if ((code = taosFsyncFile(pWal->pIdxFile)) != 0) {
TAOS_CHECK_GOTO(terrno, &lino, _exit);