Merge pull request #2881 from taosdata/feature/platform
unlock dbmutex while create vgroup failed
This commit is contained in:
commit
919958dbba
|
@ -450,6 +450,7 @@ int32_t mnodeGetAvailableVgroup(SMnodeMsg *pMsg, SVgObj **ppVgroup, int32_t *pSi
|
|||
}
|
||||
|
||||
if (pDb->numOfVgroups < 1) {
|
||||
pthread_mutex_unlock(&pDb->mutex);
|
||||
mDebug("app:%p:%p, db:%s, failed create new vgroup since:%s, numOfVgroups:%d maxVgroupsPerDb:%d ",
|
||||
pMsg->rpcMsg.ahandle, pMsg, pDb->name, tstrerror(code), pDb->numOfVgroups, maxVgroupsPerDb);
|
||||
return code;
|
||||
|
|
Loading…
Reference in New Issue