fix(stream): fix concurrent bug in save task meta.
This commit is contained in:
parent
c20ac4fea8
commit
a803eaee3e
|
@ -553,8 +553,10 @@ int32_t streamTaskScanHistoryDataComplete(SStreamTask* pTask) {
|
|||
streamSetStatusNormal(pTask);
|
||||
atomic_store_8(&pTask->status.schedStatus, TASK_SCHED_STATUS__INACTIVE);
|
||||
|
||||
// todo check rsp, commit data
|
||||
taosWLockLatch(&pMeta->lock);
|
||||
streamMetaSaveTask(pMeta, pTask);
|
||||
taosWUnLockLatch(&pMeta->lock);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue