fix(stream): set error code for return.
This commit is contained in:
parent
5fa8f85c42
commit
bc7434e2b5
|
@ -92,6 +92,7 @@ bool mndStreamTransConflictCheck(SMnode* pMnode, int64_t streamUid, const char*
|
||||||
if (strcmp(pTransName, MND_STREAM_DROP_NAME) != 0) {
|
if (strcmp(pTransName, MND_STREAM_DROP_NAME) != 0) {
|
||||||
mWarn("conflict with other transId:%d streamUid:0x%" PRIx64 ", trans:%s", tInfo.transId, tInfo.streamUid,
|
mWarn("conflict with other transId:%d streamUid:0x%" PRIx64 ", trans:%s", tInfo.transId, tInfo.streamUid,
|
||||||
tInfo.name);
|
tInfo.name);
|
||||||
|
terrno = TSDB_CODE_MND_TRANS_CONFLICT;
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
mDebug("not conflict with checkpoint trans, name:%s, continue create trans", pTransName);
|
mDebug("not conflict with checkpoint trans, name:%s, continue create trans", pTransName);
|
||||||
|
@ -100,6 +101,7 @@ bool mndStreamTransConflictCheck(SMnode* pMnode, int64_t streamUid, const char*
|
||||||
(strcmp(tInfo.name, MND_STREAM_TASK_RESET_NAME) == 0)) {
|
(strcmp(tInfo.name, MND_STREAM_TASK_RESET_NAME) == 0)) {
|
||||||
mWarn("conflict with other transId:%d streamUid:0x%" PRIx64 ", trans:%s", tInfo.transId, tInfo.streamUid,
|
mWarn("conflict with other transId:%d streamUid:0x%" PRIx64 ", trans:%s", tInfo.transId, tInfo.streamUid,
|
||||||
tInfo.name);
|
tInfo.name);
|
||||||
|
terrno = TSDB_CODE_MND_TRANS_CONFLICT;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue