[TD-2923]<fix>: Not show databases in dropping

This commit is contained in:
Minglei Jin 2021-02-03 18:37:46 +08:00
parent 52e62cf166
commit 017d1e2945
1 changed files with 1 additions and 1 deletions

View File

@ -679,7 +679,7 @@ static int32_t mnodeRetrieveDbs(SShowObj *pShow, char *data, int32_t rows, void
pShow->pIter = mnodeGetNextDb(pShow->pIter, &pDb);
if (pDb == NULL) break;
if (pDb->pAcct != pUser->pAcct) {
if (pDb->pAcct != pUser->pAcct || pDb->status != TSDB_DB_STATUS_READY) {
mnodeDecDbRef(pDb);
continue;
}