Fix error return code.

This commit is contained in:
xiao-77 2024-12-11 11:17:16 +08:00
parent 1698fe0544
commit 78a283411c
1 changed files with 1 additions and 1 deletions

View File

@ -349,7 +349,7 @@ _exit:
wError("vgId:%d, %s failed at line %d since %s", pWal->cfg.vgId, __func__, lino, tstrerror(code));
}
TAOS_RETURN(TSDB_CODE_SUCCESS);
TAOS_RETURN(code);
}
static FORCE_INLINE int32_t walCheckAndRoll(SWal *pWal) {