other: fix syntax error.
This commit is contained in:
parent
84583580e2
commit
0fab9a1827
|
@ -3006,6 +3006,7 @@ int32_t mndProcessStreamHb(SRpcMsg *pReq) {
|
||||||
bool checkpointFailed = false;
|
bool checkpointFailed = false;
|
||||||
int64_t activeCheckpointId = 0;
|
int64_t activeCheckpointId = 0;
|
||||||
int64_t streamId = 0;
|
int64_t streamId = 0;
|
||||||
|
int32_t transId = 0;
|
||||||
|
|
||||||
SDecoder decoder = {0};
|
SDecoder decoder = {0};
|
||||||
tDecoderInit(&decoder, pReq->pCont, pReq->contLen);
|
tDecoderInit(&decoder, pReq->pCont, pReq->contLen);
|
||||||
|
@ -3075,6 +3076,7 @@ int32_t mndProcessStreamHb(SRpcMsg *pReq) {
|
||||||
if (p->checkpointFailed) {
|
if (p->checkpointFailed) {
|
||||||
checkpointFailed = p->checkpointFailed;
|
checkpointFailed = p->checkpointFailed;
|
||||||
streamId = p->id.streamId;
|
streamId = p->id.streamId;
|
||||||
|
transId = p->chkpointTransId;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -93,6 +93,8 @@ bool streamTransConflictOtherTrans(SMnode* pMnode, int64_t streamUid, const char
|
||||||
mWarn("conflict with other transId:%d streamUid:%" PRIx64 ", trans:%s", tInfo.transId, tInfo.streamUid,
|
mWarn("conflict with other transId:%d streamUid:%" PRIx64 ", trans:%s", tInfo.transId, tInfo.streamUid,
|
||||||
tInfo.name);
|
tInfo.name);
|
||||||
return true;
|
return true;
|
||||||
|
} else {
|
||||||
|
mDebug("not conflict with checkpoint trans, name:%s, continue create trans", pTransName);
|
||||||
}
|
}
|
||||||
} else if ((strcmp(tInfo.name, MND_STREAM_CREATE_NAME) == 0) || (strcmp(tInfo.name, MND_STREAM_DROP_NAME) == 0) ||
|
} else if ((strcmp(tInfo.name, MND_STREAM_CREATE_NAME) == 0) || (strcmp(tInfo.name, MND_STREAM_DROP_NAME) == 0) ||
|
||||||
(strcmp(tInfo.name, MND_STREAM_TASK_RESET_NAME) == 0)) {
|
(strcmp(tInfo.name, MND_STREAM_TASK_RESET_NAME) == 0)) {
|
||||||
|
@ -100,6 +102,8 @@ bool streamTransConflictOtherTrans(SMnode* pMnode, int64_t streamUid, const char
|
||||||
tInfo.name);
|
tInfo.name);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
mDebug("stream:0x%"PRIx64" no conflict trans existed, continue create trans", streamUid);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (lock) {
|
if (lock) {
|
||||||
|
|
Loading…
Reference in New Issue