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

@ -19,7 +19,7 @@ namespace oceanbase {
namespace sql {
class ObTaskExecutorCtx;
class ObSqlPartitionLocationCache : public share::ObIPartitionLocationCache {
public:
public:
enum LocationDistributedMode {
LOC_DIST_MODE_INVALID = 0,
LOC_DIST_MODE_ONLY_LOCAL,
@ -27,7 +27,7 @@ class ObSqlPartitionLocationCache : public share::ObIPartitionLocationCache {
LOC_DIST_MODE_ONLY_RS,
};
public:
public:
ObSqlPartitionLocationCache();
virtual ~ObSqlPartitionLocationCache(){};
@ -99,7 +99,7 @@ class ObSqlPartitionLocationCache : public share::ObIPartitionLocationCache {
schema_guard_ = schema_guard;
}
private:
private:
int virtual_get(const uint64_t table_id, const int64_t partition_id, share::ObPartitionLocation& location,
const int64_t expire_renew_time, bool& is_cache_hit);
int build_local_location(uint64_t table_id, share::ObPartitionLocation& location);
@ -108,13 +108,13 @@ class ObSqlPartitionLocationCache : public share::ObIPartitionLocationCache {
int get_phy_key(
const uint64_t table_id, const int64_t partition_id, uint64_t& tg_id, int64_t& pg_id, common::ObPGKey& pg_key);
private:
private:
share::ObIPartitionLocationCache* loc_cache_;
common::ObAddr self_addr_;
ObTaskExecutorCtx* task_exec_ctx_; // used for multi-partition virtual-table to get table_location from partition_id
share::schema::ObSchemaGetterGuard* schema_guard_;
private:
private:
DISALLOW_COPY_AND_ASSIGN(ObSqlPartitionLocationCache);
};