From 0183aa41acb741950180c53bb0b4e53139d66e3e Mon Sep 17 00:00:00 2001 From: slguan Date: Sat, 4 Apr 2020 17:09:08 +0800 Subject: [PATCH] fix error while get meta --- src/mnode/src/mgmtShell.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mnode/src/mgmtShell.c b/src/mnode/src/mgmtShell.c index 66cecbdc3f..67b7a72c23 100644 --- a/src/mnode/src/mgmtShell.c +++ b/src/mnode/src/mgmtShell.c @@ -430,7 +430,7 @@ static void mgmtProcessUseMsg(SQueuedMsg *pMsg) { * check if we need to add mgmtProcessTableMetaMsg into tranQueue, which will be executed one-by-one. */ static bool mgmtCheckTableMetaMsgReadOnly(SQueuedMsg *pMsg) { - SCMTableInfoMsg *pInfo = (SCMTableInfoMsg *) pMsg; + SCMTableInfoMsg *pInfo = pMsg->pCont; pMsg->pTable = mgmtGetTable(pInfo->tableId); if (pMsg->pTable != NULL) return true;