reformat source code
according to code styles, 'AccessModifierOffset' should be -2.
This commit is contained in:
@ -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_;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user