提交 17cac5b5 编写于 作者: S slguan

fix issue #556

上级 1f5c71ae
......@@ -313,7 +313,17 @@ void mgmtDropDbFromSdb(SDbObj *pDb) {
int mgmtDropDb(SDbObj *pDb) {
if (pDb->dropStatus == TSDB_DB_STATUS_DROPPING) {
bool finished = mgmtCheckDropDbFinished(pDb);
if (!finished) return TSDB_CODE_ACTION_IN_PROGRESS;
if (!finished) {
SVgObj *pVgroup = pDb->pHead;
while (pVgroup != NULL) {
SDnodeObj *pDnode = &dnodeObj;
if (pDnode == NULL) continue;
SVnodeLoad *pVload = &pDnode->vload[pVgroup->vnodeGid[0].vnode];
mgmtSendFreeVnodeMsg(pVgroup->vnodeGid[0].vnode);
pVgroup = pVgroup->next;
}
return TSDB_CODE_ACTION_IN_PROGRESS;
}
// don't sync this action
pDb->dropStatus = TSDB_DB_STATUS_DROP_FROM_SDB;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册