From 6fa146f5ab7be2423dd0a5b4b766d1445ffa9565 Mon Sep 17 00:00:00 2001 From: Alex Duan <417921451@qq.com> Date: Tue, 13 Sep 2022 15:06:43 +0800 Subject: [PATCH] (mnode): add limit user for query1 --- src/mnode/src/mnodeUser.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mnode/src/mnodeUser.c b/src/mnode/src/mnodeUser.c index 2da087fe88..b4c86608ca 100644 --- a/src/mnode/src/mnodeUser.c +++ b/src/mnode/src/mnodeUser.c @@ -100,8 +100,8 @@ static int32_t mnodeUserActionDecode(SSdbRow *pRow) { // check old format if(tsUserUpdateSizeOld == 0) { - //int32_t nUpdateSizeOld = (int32_t)((int8_t *)old.updateEnd - (int8_t *)&old); - tsUserUpdateSizeOld = (int32_t)((SUserObjOld*)0)->updateEnd; + SUserObjOld old; + tsUserUpdateSizeOld = (int32_t)((int8_t *)old.updateEnd - (int8_t *)&old); } if (pRow->rowSize == tsUserUpdateSizeOld) { -- GitLab