fix(stream):set the initial transId
This commit is contained in:
parent
79be59d20c
commit
707fe02885
|
@ -171,7 +171,11 @@ int32_t tqStreamTaskProcessUpdateReq(SStreamMeta* pMeta, SMsgCb* cb, SRpcMsg* pM
|
||||||
SStreamTask* pTask = *ppTask;
|
SStreamTask* pTask = *ppTask;
|
||||||
const char* idstr = pTask->id.idStr;
|
const char* idstr = pTask->id.idStr;
|
||||||
|
|
||||||
if ((pMeta->updateInfo.transId != req.transId) && (pMeta->updateInfo.transId != -1)) {
|
if (pMeta->updateInfo.transId == -1) { // info needs to be kept till the new trans to update the nodeEp arrived.
|
||||||
|
streamMetaInitUpdateTaskList(pMeta, req.transId);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (pMeta->updateInfo.transId != req.transId) {
|
||||||
if (req.transId < pMeta->updateInfo.transId) {
|
if (req.transId < pMeta->updateInfo.transId) {
|
||||||
tqError("s-task:%s vgId:%d disorder update nodeEp msg recv, discarded, newest transId:%d, recv:%d", idstr, vgId,
|
tqError("s-task:%s vgId:%d disorder update nodeEp msg recv, discarded, newest transId:%d, recv:%d", idstr, vgId,
|
||||||
pMeta->updateInfo.transId, req.transId);
|
pMeta->updateInfo.transId, req.transId);
|
||||||
|
|
Loading…
Reference in New Issue