From 18ef0f7d828224198cceadb4c7e812da8dfc06f5 Mon Sep 17 00:00:00 2001 From: dmchen Date: Tue, 15 Aug 2023 17:13:58 +0800 Subject: [PATCH] vgroup version --- source/dnode/mnode/impl/src/mndVgroup.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/dnode/mnode/impl/src/mndVgroup.c b/source/dnode/mnode/impl/src/mndVgroup.c index 1b5826e7cc..e764c4091b 100644 --- a/source/dnode/mnode/impl/src/mndVgroup.c +++ b/source/dnode/mnode/impl/src/mndVgroup.c @@ -27,7 +27,7 @@ #include "mndUser.h" #include "tmisce.h" -#define VGROUP_VER_NUMBER 2 +#define VGROUP_VER_NUMBER 1 #define VGROUP_RESERVE_SIZE 64 static int32_t mndVgroupActionInsert(SSdb *pSdb, SVgObj *pVgroup); @@ -159,7 +159,7 @@ SSdbRow *mndVgroupActionDecode(SSdbRaw *pRaw) { pVgid->syncState = TAOS_SYNC_STATE_LEADER; } } - if(sver > 1){ + if(dataPos + sizeof(int32_t) + VGROUP_RESERVE_SIZE <= pRaw->dataLen){ SDB_GET_INT32(pRaw, dataPos, &pVgroup->syncConfChangeVer, _OVER) }