From f0090cf799d32f3d296262986333c80e5708a989 Mon Sep 17 00:00:00 2001 From: dmchen Date: Tue, 15 Aug 2023 14:46:54 +0800 Subject: [PATCH] vgroup version --- source/dnode/mnode/impl/src/mndVgroup.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source/dnode/mnode/impl/src/mndVgroup.c b/source/dnode/mnode/impl/src/mndVgroup.c index 44b19472e0..1b5826e7cc 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 1 +#define VGROUP_VER_NUMBER 2 #define VGROUP_RESERVE_SIZE 64 static int32_t mndVgroupActionInsert(SSdb *pSdb, SVgObj *pVgroup); @@ -159,9 +159,9 @@ SSdbRow *mndVgroupActionDecode(SSdbRaw *pRaw) { pVgid->syncState = TAOS_SYNC_STATE_LEADER; } } - //if(sver > 1){ - SDB_GET_INT32(pRaw, dataPos, &pVgroup->syncConfChangeVer, _OVER) - //} + if(sver > 1){ + SDB_GET_INT32(pRaw, dataPos, &pVgroup->syncConfChangeVer, _OVER) + } SDB_GET_RESERVE(pRaw, dataPos, VGROUP_RESERVE_SIZE, _OVER)