reformat source code
according to code styles, 'AccessModifierOffset' should be -2.
This commit is contained in:
@ -46,7 +46,7 @@ class ObIElectionCallback;
|
||||
namespace election {
|
||||
|
||||
class MockObElectionMgr : public ObElectionMgr {
|
||||
public:
|
||||
public:
|
||||
MockObElectionMgr()
|
||||
{}
|
||||
~MockObElectionMgr()
|
||||
@ -93,7 +93,7 @@ class MockObElectionMgr : public ObElectionMgr {
|
||||
return OB_SUCCESS;
|
||||
}
|
||||
|
||||
public:
|
||||
public:
|
||||
int add_partition(
|
||||
const common::ObPartitionKey& partition_key, const int64_t replica_num, ObIElectionCallback* election_cb)
|
||||
{
|
||||
@ -119,7 +119,7 @@ class MockObElectionMgr : public ObElectionMgr {
|
||||
return OB_SUCCESS;
|
||||
}
|
||||
|
||||
public:
|
||||
public:
|
||||
int handle_election_msg(const ObElectionMsgBuffer& msgbuf, obrpc::ObElectionRpcResult& result)
|
||||
{
|
||||
UNUSED(msgbuf);
|
||||
@ -127,7 +127,7 @@ class MockObElectionMgr : public ObElectionMgr {
|
||||
return OB_SUCCESS;
|
||||
}
|
||||
|
||||
public:
|
||||
public:
|
||||
int set_candidate(const common::ObPartitionKey& partition_key, const common::ObMemberList& prev_mlist,
|
||||
const common::ObMemberList& curr_mlist)
|
||||
{
|
||||
@ -164,7 +164,7 @@ class MockObElectionMgr : public ObElectionMgr {
|
||||
return OB_SUCCESS;
|
||||
}
|
||||
|
||||
private:
|
||||
private:
|
||||
ObIElection* get_election_(const common::ObPartitionKey& partition_key) const
|
||||
{
|
||||
UNUSED(partition_key);
|
||||
|
||||
@ -27,10 +27,10 @@ class ObILogNetTask;
|
||||
class ObConfirmedInfo;
|
||||
class ObLogTask;
|
||||
class MockObLogEngine : public ObILogEngine {
|
||||
public:
|
||||
public:
|
||||
typedef ObDiskBufferTask FlushTask;
|
||||
|
||||
public:
|
||||
public:
|
||||
MockObLogEngine()
|
||||
{}
|
||||
~MockObLogEngine()
|
||||
@ -554,7 +554,7 @@ class MockObLogEngine : public ObILogEngine {
|
||||
return ret;
|
||||
}
|
||||
|
||||
private:
|
||||
private:
|
||||
ObIndexInfoBlockHandler fake_handler_;
|
||||
ObLogDir si_dir_;
|
||||
ObLogDir ui_dir_;
|
||||
|
||||
@ -32,13 +32,13 @@ class ObLogEntry;
|
||||
class ObLogEntryHeader;
|
||||
|
||||
class MockObLogMembershipMgr : public ObILogMembershipMgr, public ObISubmitLogCb {
|
||||
public:
|
||||
public:
|
||||
MockObLogMembershipMgr()
|
||||
{}
|
||||
virtual ~MockObLogMembershipMgr()
|
||||
{}
|
||||
|
||||
public:
|
||||
public:
|
||||
int init(const common::ObMemberList& member_list, const int64_t membership_timestamp,
|
||||
const uint64_t membership_log_id, const int64_t replica_num, const common::ObAddr& self,
|
||||
const common::ObPartitionKey& partition_key, ObILogSWForMS* sw, ObILogStateMgrForMS* state_mgr,
|
||||
@ -287,7 +287,7 @@ class MockObLogMembershipMgr : public ObILogMembershipMgr, public ObISubmitLogCb
|
||||
return OB_SUCCESS;
|
||||
}
|
||||
|
||||
private:
|
||||
private:
|
||||
common::ObMemberList member_list_;
|
||||
common::ObProposalID ms_proposal_id_;
|
||||
};
|
||||
|
||||
@ -28,7 +28,7 @@ namespace clog {
|
||||
class ObILogMembershipMgr;
|
||||
|
||||
class MockObLogReconfirm : public ObLogReconfirm {
|
||||
public:
|
||||
public:
|
||||
MockObLogReconfirm()
|
||||
{}
|
||||
virtual ~MockObLogReconfirm()
|
||||
@ -83,7 +83,7 @@ class MockObLogReconfirm : public ObLogReconfirm {
|
||||
static const int64_t SUBMITED_TAG_BIT = 29;
|
||||
static const int64_t LOG_EXIST_TAG_BIT = 28;
|
||||
|
||||
private:
|
||||
private:
|
||||
int init_reconfirm_()
|
||||
{
|
||||
return OB_SUCCESS;
|
||||
|
||||
@ -19,20 +19,20 @@
|
||||
namespace oceanbase {
|
||||
namespace clog {
|
||||
class MockObLogReplayEngineWrapper : public ObLogReplayEngineWrapper {
|
||||
public:
|
||||
public:
|
||||
MockObLogReplayEngineWrapper()
|
||||
{}
|
||||
virtual ~MockObLogReplayEngineWrapper()
|
||||
{}
|
||||
|
||||
public:
|
||||
public:
|
||||
int init(replayengine::ObILogReplayEngine* log_replay_engine)
|
||||
{
|
||||
UNUSED(log_replay_engine);
|
||||
return OB_SUCCESS;
|
||||
}
|
||||
|
||||
public:
|
||||
public:
|
||||
int submit_replay_task(const common::ObPartitionKey& partition_key, const ObLogEntry& log_entry)
|
||||
{
|
||||
UNUSED(partition_key);
|
||||
|
||||
@ -31,7 +31,7 @@ class ObIOutOfBandLogHandler;
|
||||
class ObILogStateMgrForSW;
|
||||
|
||||
class MockObSlidingCallBack : public ObILogTaskCallBack {
|
||||
public:
|
||||
public:
|
||||
MockObSlidingCallBack()
|
||||
{}
|
||||
virtual ~MockObSlidingCallBack()
|
||||
|
||||
@ -32,7 +32,7 @@ class ObILogCallbackEngine;
|
||||
class ObILogAllocator;
|
||||
|
||||
class MockObLogStateMgr : public ObLogStateMgr {
|
||||
public:
|
||||
public:
|
||||
MockObLogStateMgr()
|
||||
{}
|
||||
~MockObLogStateMgr()
|
||||
@ -40,7 +40,7 @@ class MockObLogStateMgr : public ObLogStateMgr {
|
||||
destroy();
|
||||
}
|
||||
|
||||
public:
|
||||
public:
|
||||
int init(ObILogSWForStateMgr* sw, ObILogReconfirm* reconfirm, ObILogEngine* log_engine, ObILogMembershipMgr* mm,
|
||||
election::ObIElectionMgr* election_mgr, ObILogReplayEngineWrapper* replay_engine, share::ObIPSCb* ps_cb,
|
||||
ObILogAllocator* alloc_mgr, const common::ObAddr& self, const common::ObProposalID& proposal_id,
|
||||
|
||||
@ -20,13 +20,13 @@
|
||||
namespace oceanbase {
|
||||
namespace common {
|
||||
class MockObPSCb : public share::ObIPSCb {
|
||||
public:
|
||||
public:
|
||||
MockObPSCb()
|
||||
{}
|
||||
virtual ~MockObPSCb()
|
||||
{}
|
||||
|
||||
public:
|
||||
public:
|
||||
int64_t get_min_using_file_id() const
|
||||
{
|
||||
return 0;
|
||||
|
||||
@ -17,13 +17,13 @@
|
||||
namespace oceanbase {
|
||||
namespace clog {
|
||||
class MockObSubmitLogCb : public ObISubmitLogCb {
|
||||
public:
|
||||
public:
|
||||
MockObSubmitLogCb()
|
||||
{}
|
||||
virtual ~MockObSubmitLogCb()
|
||||
{}
|
||||
|
||||
public:
|
||||
public:
|
||||
int on_success(const common::ObPartitionKey& partition_key, const clog::ObLogType log_type, const uint64_t log_id,
|
||||
const int64_t version, const bool batch_committed, const bool batch_last_succeed)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user