minor changes

This commit is contained in:
Shengliang Guan 2022-01-11 19:52:02 -08:00
parent 21c69b8bf6
commit a24087b8d0
3 changed files with 2 additions and 3 deletions

View File

@ -251,7 +251,6 @@ void dndClose(SDnode *pDnode) {
dndCleanupQnode(pDnode); dndCleanupQnode(pDnode);
dndCleanupVnodes(pDnode); dndCleanupVnodes(pDnode);
dndCleanupMgmt(pDnode); dndCleanupMgmt(pDnode);
vnodeCleanup();
tfsCleanup(); tfsCleanup();
dndCloseImp(pDnode); dndCloseImp(pDnode);
@ -309,6 +308,7 @@ void dndCleanup() {
} }
walCleanUp(); walCleanUp();
vnodeCleanup();
rpcCleanup(); rpcCleanup();
taosStopCacheRefreshWorker(); taosStopCacheRefreshWorker();

View File

@ -45,6 +45,7 @@ void Testbase::InitLog(const char* path) {
void Testbase::Init(const char* path, int16_t port) { void Testbase::Init(const char* path, int16_t port) {
SDnodeEnvCfg cfg = {0}; SDnodeEnvCfg cfg = {0};
cfg.numOfCommitThreads = 1; cfg.numOfCommitThreads = 1;
cfg.numOfCores = 1;
dndInit(&cfg); dndInit(&cfg);
char fqdn[] = "localhost"; char fqdn[] = "localhost";

View File

@ -61,8 +61,6 @@ void vnodeCleanup() {
return; return;
} }
walCleanUp();
// Stop commit handler // Stop commit handler
pthread_mutex_lock(&(vnodeMgr.mutex)); pthread_mutex_lock(&(vnodeMgr.mutex));
vnodeMgr.stop = true; vnodeMgr.stop = true;