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

@ -35,7 +35,7 @@ class ObTableCompater;
class ObITable {
OB_UNIS_VERSION(1);
public:
public:
enum TableType {
MEMTABLE = 0,
MAJOR_SSTABLE = 1,
@ -54,7 +54,7 @@ class ObITable {
struct TableKey {
OB_UNIS_VERSION(1);
public:
public:
TableKey();
TableKey(const ObITable::TableType& table_type, const common::ObPartitionKey& pkey, const uint64_t table_id,
const common::ObVersionRange& trans_version_range, const common::ObVersion& version,
@ -396,17 +396,17 @@ class ObITable {
return is_table_type_valid(table_type) ? table_type_name_[table_type] : nullptr;
}
protected:
protected:
TableKey key_;
int64_t ref_cnt_;
private:
private:
static const char* table_type_name_[TableType::MAX_TABLE_TYPE];
DISALLOW_COPY_AND_ASSIGN(ObITable);
};
class ObTableHandle final {
public:
public:
ObTableHandle();
~ObTableHandle();
storage::ObITable* get_table()
@ -429,13 +429,13 @@ class ObTableHandle final {
int get_sstable_schema_version(int64_t& schema_version) const;
TO_STRING_KV(KP(table_), K(table_));
private:
private:
storage::ObITable* table_;
DISALLOW_COPY_AND_ASSIGN(ObTableHandle);
};
class ObTablesHandle final {
public:
public:
typedef common::ObSEArray<storage::ObITable*, common::DEFAULT_STORE_CNT_IN_STORAGE> TableArray;
ObTablesHandle();
~ObTablesHandle();
@ -492,7 +492,7 @@ class ObTablesHandle final {
int check_continues(const common::ObLogTsRange* log_ts_range);
DECLARE_TO_STRING;
private:
private:
TableArray tables_;
int64_t protection_cnt_;
const bool* memstore_retired_;
@ -509,7 +509,7 @@ OB_INLINE bool ObTablesHandle::check_store_expire() const
}
class ObTableProtector {
public:
public:
static void hold(ObITable& table);
static void release(ObITable& table);
};