Merge pull request #1560 from taosdata/fix-missing-mutex-unlock-issues
fix missing mutex-unlock call in few files.
This commit is contained in:
commit
7b34220674
|
@ -1787,6 +1787,7 @@ int tscBuildHeartBeatMsg(SSqlObj *pSql, SSqlInfo *pInfo) {
|
|||
|
||||
size = tscEstimateHeartBeatMsgLength(pSql);
|
||||
if (TSDB_CODE_SUCCESS != tscAllocPayload(pCmd, size)) {
|
||||
pthread_mutex_unlock(&pObj->mutex);
|
||||
tscError("%p failed to malloc for heartbeat msg", pSql);
|
||||
return -1;
|
||||
}
|
||||
|
|
|
@ -1381,6 +1381,7 @@ static void tscRetrieveFromDnodeCallBack(void *param, TAOS_RES *tres, int numOfR
|
|||
} else { // all data has been retrieved to client
|
||||
tscAllDataRetrievedFromDnode(trsupport, pSql);
|
||||
}
|
||||
pthread_mutex_unlock(&trsupport->queryMutex);
|
||||
}
|
||||
|
||||
static SSqlObj *tscCreateSqlObjForSubquery(SSqlObj *pSql, SRetrieveSupport *trsupport, SSqlObj *prevSqlObj) {
|
||||
|
|
|
@ -695,6 +695,7 @@ int32_t sdbUpdateRow(SSdbOperDesc *pOper) {
|
|||
int32_t total_size = sizeof(SRowHead) + pTable->maxRowSize + sizeof(TSCKSUM);
|
||||
SRowHead *rowHead = (SRowHead *)calloc(1, total_size);
|
||||
if (rowHead == NULL) {
|
||||
pthread_mutex_unlock(&pTable->mutex);
|
||||
sdbError("table:%s, failed to allocate row head memory", pTable->tableName);
|
||||
return -1;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue