enh: [TD-34190] remove-wrong-log (#30408)
This commit is contained in:
parent
b5962d6b9e
commit
13475700c5
|
@ -20,6 +20,7 @@
|
|||
#include "mndShow.h"
|
||||
#include "mndTrans.h"
|
||||
#include "mndVgroup.h"
|
||||
#include "mndSync.h"
|
||||
|
||||
#define ARBGROUP_VER_NUMBER 1
|
||||
#define ARBGROUP_RESERVE_SIZE 51
|
||||
|
@ -266,9 +267,11 @@ static int32_t mndArbGroupActionUpdate(SSdb *pSdb, SArbGroup *pOld, SArbGroup *p
|
|||
_OVER:
|
||||
(void)taosThreadMutexUnlock(&pOld->mutex);
|
||||
|
||||
if (mndIsLeader(pSdb->pMnode)) {
|
||||
if (taosHashRemove(arbUpdateHash, &pOld->vgId, sizeof(int32_t)) != 0) {
|
||||
mError("arbgroup:%d, failed to remove from arbUpdateHash", pOld->vgId);
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue