From 633b8eaec933daf019da55cb39765a6cdfc02794 Mon Sep 17 00:00:00 2001 From: Hui Li Date: Thu, 9 Jul 2020 16:47:49 +0800 Subject: [PATCH] [TD-883] --- src/mnode/src/mnodeShow.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mnode/src/mnodeShow.c b/src/mnode/src/mnodeShow.c index abe88ff324..a56ad34a25 100644 --- a/src/mnode/src/mnodeShow.c +++ b/src/mnode/src/mnodeShow.c @@ -356,12 +356,12 @@ static int32_t mnodeProcessUseMsg(SMnodeMsg *pMsg) { int32_t code = TSDB_CODE_SUCCESS; if (pMsg->pDb == NULL) pMsg->pDb = mnodeGetDb(pUseDbMsg->db); if (pMsg->pDb == NULL) { - code = TSDB_CODE_MND_INVALID_DB; + return TSDB_CODE_MND_INVALID_DB; } if (pMsg->pDb->status != TSDB_DB_STATUS_READY) { mError("db:%s, status:%d, in dropping", pMsg->pDb->name, pMsg->pDb->status); - code = TSDB_CODE_MND_DB_IN_DROPPING; + return TSDB_CODE_MND_DB_IN_DROPPING; } return code; -- GitLab