reformat source code

according to code styles, 'AccessModifierOffset' should be -2.
This commit is contained in:
gm
2021-06-16 15:48:42 +08:00
committed by MizuhaHimuraki
parent 8c4a2f26a6
commit 4a92b6d7df
3314 changed files with 23131 additions and 23401 deletions

View File

@ -26,7 +26,7 @@ using namespace election;
using namespace common;
namespace unittest {
class ElectionRpcTask {
public:
public:
ElectionRpcTask()
{
reset();
@ -41,7 +41,7 @@ class ElectionRpcTask {
timestamp_ = 0;
}
public:
public:
ObAddr server_;
ObElectionMsgBuffer msgbuf_;
ObPartitionKey partition_;
@ -49,17 +49,17 @@ class ElectionRpcTask {
};
class ElectionRpcTaskFactory {
public:
public:
static ElectionRpcTask* alloc();
static void release(ElectionRpcTask* task);
private:
private:
static int64_t alloc_count_;
static int64_t release_count_;
};
class MockObElectionRpc : public ObIElectionRpc, public common::ObSimpleThreadPool {
public:
public:
MockObElectionRpc() : inited_(false), election_mgr_(NULL)
{}
~MockObElectionRpc()
@ -99,7 +99,7 @@ class MockObElectionRpc : public ObIElectionRpc, public common::ObSimpleThreadPo
int init(ObIElectionMgr* election_mgr, const ObAddr& self);
void handle(void* task);
private:
private:
bool inited_;
ObIElectionMgr* election_mgr_;
};