refact(cluster): node mgmt

This commit is contained in:
Shengliang Guan 2022-04-13 10:00:50 +08:00
parent 3de4b0ad05
commit 271264f626
20 changed files with 19 additions and 19 deletions

View File

@ -14,7 +14,7 @@
*/
#define _DEFAULT_SOURCE
#include "dndImp.h"
#include "dmImp.h"
#include "tconfig.h"
static struct {

View File

@ -16,7 +16,7 @@
#ifndef _TD_DND_IMP_H_
#define _TD_DND_IMP_H_
#include "dndInt.h"
#include "dmInt.h"
#ifdef __cplusplus
extern "C" {

View File

@ -14,7 +14,7 @@
*/
#define _DEFAULT_SOURCE
#include "dndImp.h"
#include "dmImp.h"
static void dmPrintDnodes(SDnodeData *pMgmt);
static bool dmIsEpChanged(SDnodeData *pMgmt, int32_t dnodeId, const char *ep);

View File

@ -14,7 +14,7 @@
*/
#define _DEFAULT_SOURCE
#include "dndImp.h"
#include "dmImp.h"
static bool dndRequireNode(SMgmtWrapper *pWrapper) {
bool required = false;

View File

@ -14,7 +14,7 @@
*/
#define _DEFAULT_SOURCE
#include "dndImp.h"
#include "dmImp.h"
static int32_t dmProcessStatusRsp(SDnode *pDnode, SRpcMsg *pRsp) {
SDnode *pDnode = pMgmt->pDnode;

View File

@ -14,7 +14,7 @@
*/
#define _DEFAULT_SOURCE
#include "dndImp.h"
#include "dmImp.h"
static void dmGetMonitorBasicInfo(SDnode *pDnode, SMonBasicInfo *pInfo) {
pInfo->protocol = 1;

View File

@ -14,7 +14,7 @@
*/
#define _DEFAULT_SOURCE
#include "dndImp.h"
#include "dmImp.h"
static int32_t dndInitVars(SDnode *pDnode, const SDnodeOpt *pOption) {

View File

@ -14,7 +14,7 @@
*/
#define _DEFAULT_SOURCE
#include "dndImp.h"
#include "dmImp.h"
#define INTERNAL_USER "_dnd"
#define INTERNAL_CKEY "_key"

View File

@ -14,7 +14,7 @@
*/
#define _DEFAULT_SOURCE
#include "dndImp.h"
#include "dmImp.h"
static void *dmStatusThreadFp(void *param) {
SDnode *pDnode = param;

View File

@ -16,7 +16,7 @@
#ifndef _TD_DND_DEF_H_
#define _TD_DND_DEF_H_
#include "dndLog.h"
#include "dmLog.h"
#include "cJSON.h"
#include "tcache.h"

View File

@ -16,7 +16,7 @@
#ifndef _TD_DND_INT_H_
#define _TD_DND_INT_H_
#include "dndDef.h"
#include "dmDef.h"
#ifdef __cplusplus
extern "C" {

View File

@ -14,7 +14,7 @@
*/
#define _DEFAULT_SOURCE
#include "dndInt.h"
#include "dmInt.h"
#include "wal.h"
static int8_t once = DND_ENV_INIT;

View File

@ -14,7 +14,7 @@
*/
#define _DEFAULT_SOURCE
#include "dndInt.h"
#include "dmInt.h"
#define MAXLEN 1024

View File

@ -14,7 +14,7 @@
*/
#define _DEFAULT_SOURCE
#include "dndInt.h"
#include "dmInt.h"
const char *dndStatName(EDndRunStatus status) {
switch (status) {

View File

@ -16,7 +16,7 @@
#ifndef _TD_DND_BNODE_INT_H_
#define _TD_DND_BNODE_INT_H_
#include "dndInt.h"
#include "dmInt.h"
#include "bnode.h"

View File

@ -16,7 +16,7 @@
#ifndef _TD_DND_MNODE_INT_H_
#define _TD_DND_MNODE_INT_H_
#include "dndInt.h"
#include "dmInt.h"
#include "mnode.h"

View File

@ -16,7 +16,7 @@
#ifndef _TD_DND_QNODE_INT_H_
#define _TD_DND_QNODE_INT_H_
#include "dndInt.h"
#include "dmInt.h"
#include "qnode.h"

View File

@ -16,7 +16,7 @@
#ifndef _TD_DND_SNODE_INT_H_
#define _TD_DND_SNODE_INT_H_
#include "dndInt.h"
#include "dmInt.h"
#include "snode.h"

View File

@ -16,7 +16,7 @@
#ifndef _TD_DND_VNODES_INT_H_
#define _TD_DND_VNODES_INT_H_
#include "dndInt.h"
#include "dmInt.h"
#include "sync.h"
#include "vnode.h"