minor changes
This commit is contained in:
parent
21c69b8bf6
commit
a24087b8d0
|
@ -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();
|
||||||
|
|
|
@ -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";
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue