Skip to content

Commit

Permalink
Merge pull request #18948 from taosdata/fix/TD-21092
Browse files Browse the repository at this point in the history
fix: remove sch status on timeout
  • Loading branch information
guanshengliang committed Dec 14, 2022
2 parents 75b7071 + e6709ca commit 0a5ee50
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions source/libs/qworker/src/qwUtil.c
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ int32_t qwAddSchedulerImpl(SQWorker *mgmt, uint64_t sId, int32_t rwType) {
SQWSchStatus newSch = {0};
newSch.tasksHash =
taosHashInit(mgmt->cfg.maxSchTaskNum, taosGetDefaultHashFunction(TSDB_DATA_TYPE_BINARY), false, HASH_NO_LOCK);
newSch.hbBrokenTs = taosGetTimestampMs();

if (NULL == newSch.tasksHash) {
QW_SCH_ELOG("taosHashInit %d failed", mgmt->cfg.maxSchTaskNum);
QW_ERR_RET(TSDB_CODE_OUT_OF_MEMORY);
Expand Down

0 comments on commit 0a5ee50

Please sign in to comment.