diff --git a/src/client/src/tscSubquery.c b/src/client/src/tscSubquery.c index 239df6c682fe05d393b457c2c56b682588106ca7..4e02325be605a954c9695bb808e063e3b2fc9f68 100644 --- a/src/client/src/tscSubquery.c +++ b/src/client/src/tscSubquery.c @@ -1367,7 +1367,9 @@ int32_t tscHandleMasterSTableQuery(SSqlObj *pSql) { trs->pParentSqlObj = pSql; trs->pFinalColModel = pModel; - pthread_mutexattr_t mutexattr = {0}; + pthread_mutexattr_t mutexattr; + memset(&mutexattr, 0, sizeof(pthread_mutexattr_t)); + pthread_mutexattr_settype(&mutexattr, PTHREAD_MUTEX_RECURSIVE_NP); pthread_mutex_init(&trs->queryMutex, &mutexattr); pthread_mutexattr_destroy(&mutexattr);