[TD-93] fix deadlocks in dnode
This commit is contained in:
parent
fb56f9dce7
commit
9fa0685a24
|
@ -182,7 +182,7 @@ void mgmtProcessCfgDnodeMsg(SQueuedMsg *pMsg) {
|
|||
}
|
||||
|
||||
static void mgmtProcessCfgDnodeMsgRsp(SRpcMsg *rpcMsg) {
|
||||
mPrint("cfg vnode rsp is received");
|
||||
mPrint("cfg vnode rsp is received, result:%s", tstrerror(rpcMsg->code));
|
||||
}
|
||||
|
||||
void mgmtProcessDnodeStatusMsg(SRpcMsg *rpcMsg) {
|
||||
|
|
|
@ -995,7 +995,7 @@ int tsCfgDynamicOptions(char *msg) {
|
|||
int vint = 0;
|
||||
|
||||
paGetToken(msg, &option, &olen);
|
||||
if (olen == 0) return code;
|
||||
if (olen == 0) return TSDB_CODE_INVALID_MSG_CONTENT;
|
||||
|
||||
paGetToken(option + olen + 1, &value, &vlen);
|
||||
if (vlen == 0)
|
||||
|
|
|
@ -232,8 +232,11 @@ static void vnodeBuildVloadMsg(char *pNode, void * param) {
|
|||
}
|
||||
|
||||
static void vnodeCleanUp(SVnodeObj *pVnode) {
|
||||
taosDeleteIntHash(tsDnodeVnodesHash, pVnode->vgId);
|
||||
|
||||
if (pVnode->status == VN_STATUS_DELETING) {
|
||||
// fix deadlock occured while close system
|
||||
taosDeleteIntHash(tsDnodeVnodesHash, pVnode->vgId);
|
||||
}
|
||||
|
||||
//syncStop(pVnode->sync);
|
||||
tsdbCloseRepo(pVnode->tsdb);
|
||||
walClose(pVnode->wal);
|
||||
|
|
Loading…
Reference in New Issue