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

@ -37,13 +37,13 @@ using namespace share;
using namespace share::schema;
namespace storage {
class ObGarbageCollector::InsertPGFunctor {
public:
public:
explicit InsertPGFunctor(const common::ObPGKey& pg_key) : pg_key_(pg_key), ret_value_(common::OB_SUCCESS)
{}
~InsertPGFunctor()
{}
public:
public:
bool operator()(const common::ObAddr& leader, common::ObPartitionArray& pg_array)
{
if (OB_SUCCESS != (ret_value_ = pg_array.push_back(pg_key_))) {
@ -56,16 +56,16 @@ class ObGarbageCollector::InsertPGFunctor {
return ret_value_;
}
private:
private:
common::ObPGKey pg_key_;
int ret_value_;
private:
private:
DISALLOW_COPY_AND_ASSIGN(InsertPGFunctor);
};
class ObGarbageCollector::QueryPGIsValidMemberFunctor {
public:
public:
QueryPGIsValidMemberFunctor(obrpc::ObSrvRpcProxy* rpc_proxy, ObPartitionService* partition_service,
const common::ObAddr& self_addr, const int64_t gc_seq, ObGCCandidateArray& gc_candidates)
: rpc_proxy_(rpc_proxy),
@ -78,7 +78,7 @@ class ObGarbageCollector::QueryPGIsValidMemberFunctor {
~QueryPGIsValidMemberFunctor()
{}
public:
public:
bool operator()(const common::ObAddr& leader, common::ObPartitionArray& pg_array)
{
if (OB_SUCCESS != (ret_value_ = handle_pg_array_(leader, pg_array))) {
@ -91,13 +91,13 @@ class ObGarbageCollector::QueryPGIsValidMemberFunctor {
return ret_value_;
}
private:
private:
int handle_pg_array_(const common::ObAddr& leader, const common::ObPartitionArray& pg_array);
int handle_rpc_response_(const common::ObAddr& leader, const obrpc::ObQueryIsValidMemberResponse& response);
bool is_normal_readonly_replica_(ObIPartitionGroup* pg) const;
int try_renew_location_(const common::ObPartitionArray& pg_array);
private:
private:
obrpc::ObSrvRpcProxy* rpc_proxy_;
ObPartitionService* partition_service_;
common::ObAddr self_addr_;
@ -105,12 +105,12 @@ class ObGarbageCollector::QueryPGIsValidMemberFunctor {
ObGCCandidateArray& gc_candidates_;
int ret_value_;
private:
private:
DISALLOW_COPY_AND_ASSIGN(QueryPGIsValidMemberFunctor);
};
class ObGarbageCollector::QueryPGFlushedIlogIDFunctor {
public:
public:
QueryPGFlushedIlogIDFunctor(
obrpc::ObSrvRpcProxy* rpc_proxy, PGOfflineIlogFlushedInfoMap& pg_offline_ilog_flushed_info_map)
: rpc_proxy_(rpc_proxy),
@ -120,7 +120,7 @@ class ObGarbageCollector::QueryPGFlushedIlogIDFunctor {
~QueryPGFlushedIlogIDFunctor()
{}
public:
public:
bool operator()(const common::ObAddr& leader, common::ObPartitionArray& pg_array)
{
if (OB_SUCCESS != (ret_value_ = handle_pg_array_(leader, pg_array))) {
@ -133,28 +133,28 @@ class ObGarbageCollector::QueryPGFlushedIlogIDFunctor {
return ret_value_;
}
private:
private:
int handle_pg_array_(const common::ObAddr& leader, const common::ObPartitionArray& pg_array);
int handle_rpc_response_(const common::ObAddr& server, const obrpc::ObQueryMaxFlushedILogIdResponse& response);
private:
private:
obrpc::ObSrvRpcProxy* rpc_proxy_;
PGOfflineIlogFlushedInfoMap& pg_offline_ilog_flushed_info_map_;
int ret_value_;
private:
private:
DISALLOW_COPY_AND_ASSIGN(QueryPGFlushedIlogIDFunctor);
};
class ObGarbageCollector::ExecuteSchemaDropFunctor {
public:
public:
ExecuteSchemaDropFunctor(common::ObMySQLProxy* sql_proxy, ObPartitionService* partition_service)
: sql_proxy_(sql_proxy), partition_service_(partition_service), ret_value_(common::OB_SUCCESS)
{}
~ExecuteSchemaDropFunctor()
{}
public:
public:
bool operator()(const common::ObPGKey& pg_key, const PGOfflineIlogFlushedInfo& info)
{
if (OB_SUCCESS != (ret_value_ = handle_each_pg_(pg_key, info))) {
@ -167,16 +167,16 @@ class ObGarbageCollector::ExecuteSchemaDropFunctor {
return ret_value_;
}
private:
private:
int handle_each_pg_(const common::ObPGKey& pg_key, const PGOfflineIlogFlushedInfo& info);
int delete_tenant_gc_partition_info_(const common::ObPGKey& pg_key);
private:
private:
common::ObMySQLProxy* sql_proxy_;
ObPartitionService* partition_service_;
int ret_value_;
private:
private:
DISALLOW_COPY_AND_ASSIGN(ExecuteSchemaDropFunctor);
};