Skip to content

Commit

Permalink
fix compiler bug in master-slave mode
Browse files Browse the repository at this point in the history
  • Loading branch information
ruanshudong committed Dec 8, 2023
1 parent e885217 commit 53c5afa
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 67 deletions.
61 changes: 0 additions & 61 deletions LogServer/JsonTr.h

This file was deleted.

7 changes: 2 additions & 5 deletions LogServer/TraceService.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@

void TraceService::initialize(TC_Config &config)
{

//auto &&config = getConfig();

string message{};
if (!loadTimerValue(config, message))
{
Expand Down Expand Up @@ -66,7 +63,6 @@ void TraceService::initialize(TC_Config &config)
});
timerThread_.detach();


TimerTaskQueue::instance().pushCycleTask(
[this](const size_t&, size_t&)
{
Expand All @@ -78,7 +74,8 @@ void TraceService::initialize(TC_Config &config)
}
}, 0, 1);

ESWriter::createIndexTemplate();
ESWriter::createIndexTemplate();
TLOG_DEBUG("Initialize succ" << endl);
};

bool TraceService::loadTimerValue(const TC_Config& config, string& message)
Expand Down
22 changes: 22 additions & 0 deletions RegistryServer/QueryImp.h
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,28 @@ class QueryImp: public QueryF
*/
Int32 findObjectByIdInSameSet(const std::string & id,const std::string & setId,vector<EndpointF> &activeEp,vector<EndpointF> &inactiveEp, CurrentPtr current);

/** 注册id变化的通知, 通知时会通知所有的变化内容(企业版功能)
*
* @param ids 对象名称
* @param name 当前模块名称
* @return: 0-成功 others-失败
*/
Int32 registerChange(const vector<string> &ids, const string &name, CurrentPtr current) { return -1; };

/** 注册id变化的通知, 通知时后需要自己主动find(企业版功能)
*
* @param id 对象名称
* @param name 当前模块名称
* @return: 0-成功 others-失败
*/
Int32 registerQuery(const string &id, const string &name, CurrentPtr current) { return -1; };

/**
* 获取锁, 实现业务服务一主多备的模式(企业版功能)
* @return 0: 获取锁成功; 1:获取锁失败; 2: 数据异常, -1:其他异常
*/
Int32 getLocker(const tars::GetMasterSlaveLock &req, CurrentPtr current) { return -1;};

private:
/**
* 打印按天日志
Expand Down

0 comments on commit 53c5afa

Please sign in to comment.