rename
This commit is contained in:
parent
2a5e231fd2
commit
06dbe69f87
|
@ -15,7 +15,7 @@
|
|||
|
||||
#define _DEFAULT_SOURCE
|
||||
#include "bmInt.h"
|
||||
#include "bmHandle.h"
|
||||
#include "bmMsg.h"
|
||||
|
||||
bool bmRequireNode(SMgmtWrapper *pWrapper) { return false; }
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
*/
|
||||
|
||||
#define _DEFAULT_SOURCE
|
||||
#include "bmHandle.h"
|
||||
#include "bmMsg.h"
|
||||
#include "bmWorker.h"
|
||||
|
||||
int32_t bmProcessCreateReq(SDnode *pDnode, SRpcMsg *pRpcMsg) {return 0;}
|
|
@ -22,30 +22,26 @@
|
|||
extern "C" {
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
typedef struct SMnodeMgmt {
|
||||
int32_t refCount;
|
||||
int8_t deployed;
|
||||
int8_t dropped;
|
||||
int8_t replica;
|
||||
int8_t selfIndex;
|
||||
SReplica replicas[TSDB_MAX_REPLICA];
|
||||
SMnode *pMnode;
|
||||
SProcObj *pProcess;
|
||||
bool singleProc;
|
||||
SRWLatch latch;
|
||||
SDnodeWorker readWorker;
|
||||
SDnodeWorker writeWorker;
|
||||
SDnodeWorker syncWorker;
|
||||
int8_t replica;
|
||||
int8_t selfIndex;
|
||||
SReplica replicas[TSDB_MAX_REPLICA];
|
||||
|
||||
//
|
||||
SProcObj *pProcess;
|
||||
bool singleProc;
|
||||
} SMnodeMgmt;
|
||||
|
||||
|
||||
// interface
|
||||
// mmInt.h
|
||||
void mmGetMgmtFp(SMgmtWrapper *pMgmt);
|
||||
|
||||
// mmMgmt.h
|
||||
int32_t mmInit(SDnode *pDnode);
|
||||
void mmCleanup(SDnode *pDnode);
|
||||
|
||||
|
|
|
@ -13,8 +13,8 @@
|
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef _TD_DND_MNODE_HANDLE_H_
|
||||
#define _TD_DND_MNODE_HANDLE_H_
|
||||
#ifndef _TD_DND_MNODE_MSG_H_
|
||||
#define _TD_DND_MNODE_MSG_H_
|
||||
|
||||
#include "mmInt.h"
|
||||
|
||||
|
@ -36,4 +36,4 @@ int32_t mmGetMonitorInfo(SDnode *pDnode, SMonClusterInfo *pClusterInfo, SMonVgro
|
|||
}
|
||||
#endif
|
||||
|
||||
#endif /*_TD_DND_MNODE_HANDLE_H_*/
|
||||
#endif /*_TD_DND_MNODE_MSG_H_*/
|
|
@ -15,7 +15,7 @@
|
|||
|
||||
#define _DEFAULT_SOURCE
|
||||
#include "mmInt.h"
|
||||
#include "mmHandle.h"
|
||||
#include "mmMsg.h"
|
||||
|
||||
bool mmRequireNode(SMgmtWrapper *pWrapper) { return false; }
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
*/
|
||||
|
||||
#define _DEFAULT_SOURCE
|
||||
#include "mmHandle.h"
|
||||
#include "mmMsg.h"
|
||||
#include "mmWorker.h"
|
||||
|
||||
#if 0
|
|
@ -15,7 +15,7 @@
|
|||
|
||||
#define _DEFAULT_SOURCE
|
||||
#include "qmInt.h"
|
||||
#include "qmHandle.h"
|
||||
#include "qmMsg.h"
|
||||
|
||||
bool qmRequireNode(SMgmtWrapper *pWrapper) { return false; }
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
*/
|
||||
|
||||
#define _DEFAULT_SOURCE
|
||||
#include "qmHandle.h"
|
||||
#include "qmMsg.h"
|
||||
#include "qmWorker.h"
|
||||
|
||||
int32_t qmProcessCreateReq(SDnode *pDnode, SRpcMsg *pRpcMsg) {return 0;}
|
|
@ -15,7 +15,7 @@
|
|||
|
||||
#define _DEFAULT_SOURCE
|
||||
#include "smInt.h"
|
||||
#include "smHandle.h"
|
||||
#include "smMsg.h"
|
||||
|
||||
bool smRequireNode(SMgmtWrapper *pWrapper) { return false; }
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
*/
|
||||
|
||||
#define _DEFAULT_SOURCE
|
||||
#include "smHandle.h"
|
||||
#include "smMsg.h"
|
||||
#include "smWorker.h"
|
||||
|
||||
int32_t smProcessCreateReq(SDnode *pDnode, SRpcMsg *pRpcMsg) {return 0;}
|
|
@ -15,7 +15,7 @@
|
|||
|
||||
#define _DEFAULT_SOURCE
|
||||
#include "vmInt.h"
|
||||
#include "vmHandle.h"
|
||||
#include "vmMsg.h"
|
||||
#include "vmMgmt.h"
|
||||
|
||||
static int32_t vmInit(SMgmtWrapper *pWrapper) {
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
*/
|
||||
|
||||
#define _DEFAULT_SOURCE
|
||||
#include "vmHandle.h"
|
||||
#include "vmMsg.h"
|
||||
#include "vmWorker.h"
|
||||
|
||||
|
Loading…
Reference in New Issue