Skip to content

Commit

Permalink
Merge pull request #21676 from taosdata/fix/TD-24715
Browse files Browse the repository at this point in the history
enh(vnd/svr): convert msyType to string
  • Loading branch information
gccgdb1234 authored Jun 16, 2023
2 parents 910e0aa + 4884d0a commit 01b1cfe
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions source/dnode/vnode/src/vnd/vnodeSvr.c
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,10 @@ static int32_t vnodePreProcessCreateTableMsg(SVnode *pVnode, SRpcMsg *pMsg) {

_exit:
tDecoderClear(&dc);
if (code) {
vError("vgId:%d, %s:%d failed to preprocess submit request since %s, msg type:%s", TD_VID(pVnode), __func__, lino,
tstrerror(code), TMSG_INFO(pMsg->msgType));
}
return code;
}
extern int64_t tsMaxKeyByPrecision[];
Expand Down Expand Up @@ -238,11 +242,11 @@ static int32_t vnodePreProcessSubmitMsg(SVnode *pVnode, SRpcMsg *pMsg) {
tEndDecode(pCoder);

_exit:
tDecoderClear(pCoder);
if (code) {
vError("vgId:%d, failed to preprocess submit request since %s, msg type:%d", TD_VID(pVnode), tstrerror(code),
pMsg->msgType);
vError("vgId:%d, %s:%d failed to preprocess submit request since %s, msg type:%s", TD_VID(pVnode), __func__, lino,
tstrerror(code), TMSG_INFO(pMsg->msgType));
}
tDecoderClear(pCoder);
return code;
}

Expand Down Expand Up @@ -301,8 +305,8 @@ int32_t vnodePreProcessWriteMsg(SVnode *pVnode, SRpcMsg *pMsg) {

_exit:
if (code) {
vError("vgId:%d, failed to preprocess write request since %s, msg type:%d", TD_VID(pVnode), tstrerror(code),
pMsg->msgType);
vError("vgId:%d, failed to preprocess write request since %s, msg type:%s", TD_VID(pVnode), tstrerror(code),
TMSG_INFO(pMsg->msgType));
}
return code;
}
Expand Down

0 comments on commit 01b1cfe

Please sign in to comment.