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

@ -27,19 +27,19 @@ using namespace common::hash;
namespace share {
class MockObLocationCache : public ObIPartitionLocationCache {
public:
public:
MockObLocationCache()
{}
virtual ~MockObLocationCache()
{}
int init();
public:
public:
int add(const ObPartitionKey& partition, const ObAddr& leader);
int add_overwrite(const ObPartitionKey& partition, const ObAddr& leader);
int remove(const ObPartitionKey& partition);
public:
public:
virtual ObIPartitionLocationCache::PartitionLocationCacheType get_type() const
{
return static_cast<ObIPartitionLocationCache::PartitionLocationCacheType>(PART_LOC_CACHE_TYPE_NORMAL);
@ -115,10 +115,10 @@ class MockObLocationCache : public ObIPartitionLocationCache {
return common::OB_NOT_SUPPORTED;
}
private:
private:
static const int64_t BUCKET_NUM = 137;
private:
private:
ObHashMap<ObPartitionKey, ObAddr> partition_addr_map_;
};