enh: [TD-34190] remove-wrong-log (#30408)

This commit is contained in:
dongming chen 2025-03-25 12:37:20 +08:00 committed by GitHub
parent b5962d6b9e
commit 13475700c5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 2 deletions

View File

@ -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;
}