提交 1993fbc4 编写于 作者: S Shengliang Guan

TD-2270

上级 b39b84e6
...@@ -13,13 +13,14 @@ ...@@ -13,13 +13,14 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
#ifndef TDENGINE_BALANCE_MAIN_H #ifndef TDENGINE_BALANCE_INT_H
#define TDENGINE_BALANCE_MAIN_H #define TDENGINE_BALANCE_INT_H
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
#endif #endif
#include "mnodeInt.h" #include "mnodeInt.h"
#include "mnodeDef.h"
#include "mnodeDnode.h" #include "mnodeDnode.h"
typedef struct { typedef struct {
......
...@@ -15,17 +15,12 @@ ...@@ -15,17 +15,12 @@
#define _DEFAULT_SOURCE #define _DEFAULT_SOURCE
#include "os.h" #include "os.h"
#include "tutil.h"
#include "tbalance.h"
#include "tsync.h" #include "tsync.h"
#include "ttimer.h"
#include "tglobal.h" #include "tglobal.h"
#include "tdataformat.h"
#include "dnode.h" #include "dnode.h"
#include "mnode.h" #include "bnInt.h"
#include "mnodeDef.h" #include "bnScore.h"
#include "mnodeInt.h" #include "bnThread.h"
#include "mnodeDnode.h"
#include "mnodeDb.h" #include "mnodeDb.h"
#include "mnodeMnode.h" #include "mnodeMnode.h"
#include "mnodeSdb.h" #include "mnodeSdb.h"
...@@ -33,12 +28,7 @@ ...@@ -33,12 +28,7 @@
#include "mnodeUser.h" #include "mnodeUser.h"
#include "mnodeVgroup.h" #include "mnodeVgroup.h"
#include "bnInt.h"
#include "bnScore.h"
#include "bnThread.h"
static SBnMgmt tsBnMgmt;; static SBnMgmt tsBnMgmt;;
static void bnMonitorDnodeModule(); static void bnMonitorDnodeModule();
static void bnLock() { static void bnLock() {
...@@ -514,7 +504,6 @@ bool bnStart() { ...@@ -514,7 +504,6 @@ bool bnStart() {
} }
bnReleaseDnodes(); bnReleaseDnodes();
bnUnLock(); bnUnLock();
return updateSoon; return updateSoon;
...@@ -610,8 +599,6 @@ int32_t bnDropDnode(SDnodeObj *pDnode) { ...@@ -610,8 +599,6 @@ int32_t bnDropDnode(SDnodeObj *pDnode) {
return TSDB_CODE_SUCCESS; return TSDB_CODE_SUCCESS;
} }
static void bnMonitorDnodeModule() { static void bnMonitorDnodeModule() {
int32_t numOfMnodes = mnodeGetMnodesNum(); int32_t numOfMnodes = mnodeGetMnodesNum();
if (numOfMnodes >= tsNumOfMnodes) return; if (numOfMnodes >= tsNumOfMnodes) return;
......
...@@ -15,25 +15,9 @@ ...@@ -15,25 +15,9 @@
#define _DEFAULT_SOURCE #define _DEFAULT_SOURCE
#include "os.h" #include "os.h"
#include "tutil.h"
#include "tbalance.h"
#include "tsync.h"
#include "tsync.h"
#include "ttimer.h"
#include "tglobal.h" #include "tglobal.h"
#include "tdataformat.h"
#include "dnode.h"
#include "mnode.h"
#include "mnodeDef.h"
#include "mnodeInt.h"
#include "mnodeDnode.h"
#include "mnodeDb.h"
#include "mnodeMnode.h"
#include "mnodeSdb.h"
#include "mnodeShow.h" #include "mnodeShow.h"
#include "mnodeUser.h" #include "mnodeUser.h"
#include "mnodeVgroup.h"
#include "bnScore.h" #include "bnScore.h"
SBnDnodes tsBnDnodes; SBnDnodes tsBnDnodes;
......
...@@ -15,26 +15,9 @@ ...@@ -15,26 +15,9 @@
#define _DEFAULT_SOURCE #define _DEFAULT_SOURCE
#include "os.h" #include "os.h"
#include "tutil.h"
#include "tbalance.h"
#include "tsync.h"
#include "tsync.h"
#include "ttimer.h" #include "ttimer.h"
#include "tglobal.h" #include "tglobal.h"
#include "tdataformat.h"
#include "dnode.h"
#include "mnode.h"
#include "mnodeDef.h"
#include "mnodeInt.h"
#include "mnodeDnode.h"
#include "mnodeDb.h"
#include "mnodeMnode.h"
#include "mnodeSdb.h" #include "mnodeSdb.h"
#include "mnodeShow.h"
#include "mnodeUser.h"
#include "mnodeVgroup.h"
#include "bnThread.h" #include "bnThread.h"
static SBnThread tsBnThread; static SBnThread tsBnThread;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册