This commit is contained in:
Shengliang Guan 2022-03-16 19:27:49 +08:00
parent 63861e65d0
commit a50e823327
10 changed files with 11 additions and 12 deletions

View File

@ -15,7 +15,6 @@
#define _DEFAULT_SOURCE
// #include "dndBnode.h"
// #include "dmInt.h"
// #include "dndTransport.h"
// #include "dndWorker.h"

View File

@ -16,7 +16,7 @@
#define _DEFAULT_SOURCE
#include "dndInt.h"
#include "dmInt.h"
#include "dm.h"
#include "mm.h"
#include "vmInt.h"

View File

@ -17,7 +17,7 @@
#include "dndInt.h"
#include "bmInt.h"
#include "dmInt.h"
#include "dm.h"
#include "mm.h"
#include "qmInt.h"
#include "smInt.h"
@ -209,7 +209,7 @@ static int32_t dndRunInSingleProcess(SDnode *pDnode) {
}
SMgmtWrapper *pWrapper = dndGetWrapper(pDnode, DNODE);
if (dmStartWorker(pWrapper->pMgmt) != 0) {
if (dmStart(pWrapper) != 0) {
dError("failed to start dnode worker since %s", terrstr());
return -1;
}
@ -351,7 +351,7 @@ static int32_t dndRunInMultiProcess(SDnode *pDnode) {
}
SMgmtWrapper *pWrapper = dndGetWrapper(pDnode, DNODE);
if (pWrapper->procType == PROC_PARENT && dmStartWorker(pWrapper->pMgmt) != 0) {
if (pWrapper->procType == PROC_PARENT && dmStart(pWrapper->pMgmt) != 0) {
dError("failed to start dnode worker since %s", terrstr());
return -1;
}

View File

@ -16,7 +16,7 @@
#define _DEFAULT_SOURCE
#include "dndInt.h"
#include "dmInt.h"
#include "dm.h"
#include "mm.h"
#define INTERNAL_USER "_dnd"

View File

@ -16,7 +16,7 @@
#define _DEFAULT_SOURCE
#include "mmInt.h"
#include "dmInt.h"
#include "dm.h"
SMnode *mmAcquire(SMnodeMgmt *pMgmt) {
SMnode *pMnode = NULL;

View File

@ -15,7 +15,7 @@
#define _DEFAULT_SOURCE
#include "mmInt.h"
#include "dmInt.h"
#include "dm.h"
int32_t mmProcessCreateReq(SMnodeMgmt *pMgmt, SNodeMsg *pMsg) {
SDnode *pDnode = pMgmt->pDnode;

View File

@ -16,7 +16,7 @@
#define _DEFAULT_SOURCE
#include "mmInt.h"
#include "dmInt.h"
#include "dm.h"
static void mmProcessQueue(SMnodeMgmt *pMgmt, SNodeMsg *pMsg) {
dTrace("msg:%p, will be processed", pMsg);

View File

@ -15,7 +15,7 @@
#define _DEFAULT_SOURCE
// #include "dndQnode.h"
// #include "dmInt.h"
// #include "dm.h"
// #include "dndTransport.h"
// #include "dndWorker.h"

View File

@ -15,7 +15,7 @@
#define _DEFAULT_SOURCE
// #include "dndSnode.h"
// #include "dmInt.h"
// #include "dm.h"
// #include "dndTransport.h"
// #include "dndWorker.h"

View File

@ -17,7 +17,7 @@
#include "vmMsg.h"
#include "vmFile.h"
#include "vmWorker.h"
#include "dmInt.h"
#include "dm.h"
static void vmGenerateVnodeCfg(SCreateVnodeReq *pCreate, SVnodeCfg *pCfg) {
pCfg->vgId = pCreate->vgId;