fix: error msg incorrect when no enough memory to create vnode

This commit is contained in:
Shengliang Guan 2022-05-13 17:36:32 +08:00
parent 56c1b07016
commit 2178eabcd8
2 changed files with 4 additions and 4 deletions

View File

@ -1051,7 +1051,7 @@ static int32_t mndTransExecuteActions(SMnode *pMnode, STrans *pTrans, SArray *pA
static int32_t mndTransExecuteRedoActions(SMnode *pMnode, STrans *pTrans) {
int32_t code = mndTransExecuteActions(pMnode, pTrans, pTrans->redoActions);
if (code != 0 && code != TSDB_CODE_MND_ACTION_IN_PROGRESS) {
mError("failed to execute redoActions since %s", terrstr());
mError("failed to execute redoActions since:%s, code:0x%x", terrstr(), terrno);
}
return code;
}

View File

@ -137,21 +137,21 @@ SVnode *vnodeOpen(const char *path, STfs *pTfs, SMsgCb msgCb) {
// open query
if (vnodeQueryOpen(pVnode)) {
vError("vgId:%d failed to open vnode query since %s", TD_VID(pVnode), tstrerror(terrno));
terrno = TAOS_SYSTEM_ERROR(terrno);
terrno = TAOS_SYSTEM_ERROR(errno);
goto _err;
}
// vnode begin
if (vnodeBegin(pVnode) < 0) {
vError("vgId:%d failed to begin since %s", TD_VID(pVnode), tstrerror(terrno));
terrno = TAOS_SYSTEM_ERROR(terrno);
terrno = TAOS_SYSTEM_ERROR(errno);
goto _err;
}
// open sync
if (vnodeSyncOpen(pVnode, dir)) {
vError("vgId:%d failed to open sync since %s", TD_VID(pVnode), tstrerror(terrno));
terrno = TAOS_SYSTEM_ERROR(terrno);
terrno = TAOS_SYSTEM_ERROR(errno);
goto _err;
}