Merge pull request #11177 from taosdata/hotfix/catalog_exit_issue
fix catalog exit issue
This commit is contained in:
commit
e630b623b5
|
@ -2304,8 +2304,6 @@ int32_t catalogInit(SCatalogCfg *cfg) {
|
||||||
CTG_ERR_RET(TSDB_CODE_CTG_INTERNAL_ERROR);
|
CTG_ERR_RET(TSDB_CODE_CTG_INTERNAL_ERROR);
|
||||||
}
|
}
|
||||||
|
|
||||||
CTG_ERR_RET(ctgStartUpdateThread());
|
|
||||||
|
|
||||||
tsem_init(&gCtgMgmt.queue.reqSem, 0, 0);
|
tsem_init(&gCtgMgmt.queue.reqSem, 0, 0);
|
||||||
tsem_init(&gCtgMgmt.queue.rspSem, 0, 0);
|
tsem_init(&gCtgMgmt.queue.rspSem, 0, 0);
|
||||||
|
|
||||||
|
@ -2316,6 +2314,8 @@ int32_t catalogInit(SCatalogCfg *cfg) {
|
||||||
}
|
}
|
||||||
gCtgMgmt.queue.tail = gCtgMgmt.queue.head;
|
gCtgMgmt.queue.tail = gCtgMgmt.queue.head;
|
||||||
|
|
||||||
|
CTG_ERR_RET(ctgStartUpdateThread());
|
||||||
|
|
||||||
qDebug("catalog initialized, maxDb:%u, maxTbl:%u, dbRentSec:%u, stbRentSec:%u", gCtgMgmt.cfg.maxDBCacheNum, gCtgMgmt.cfg.maxTblCacheNum, gCtgMgmt.cfg.dbRentSec, gCtgMgmt.cfg.stbRentSec);
|
qDebug("catalog initialized, maxDb:%u, maxTbl:%u, dbRentSec:%u, stbRentSec:%u", gCtgMgmt.cfg.maxDBCacheNum, gCtgMgmt.cfg.maxTblCacheNum, gCtgMgmt.cfg.dbRentSec, gCtgMgmt.cfg.stbRentSec);
|
||||||
|
|
||||||
return TSDB_CODE_SUCCESS;
|
return TSDB_CODE_SUCCESS;
|
||||||
|
|
Loading…
Reference in New Issue