reformat source code
according to code styles, 'AccessModifierOffset' should be -2.
This commit is contained in:
12
deps/oblib/src/lib/ob_define.h
vendored
12
deps/oblib/src/lib/ob_define.h
vendored
@ -1655,7 +1655,7 @@ enum ObModifyQuorumType {
|
||||
};
|
||||
|
||||
class ObModifyQuorumTypeChecker {
|
||||
public:
|
||||
public:
|
||||
static bool is_valid_type(const ObModifyQuorumType modify_quorum_type)
|
||||
{
|
||||
return modify_quorum_type >= WITH_MODIFY_QUORUM && modify_quorum_type < MAX_MODIFY_QUORUM_TYPE;
|
||||
@ -1705,7 +1705,7 @@ enum ObReplicaType {
|
||||
};
|
||||
|
||||
class ObReplicaTypeCheck {
|
||||
public:
|
||||
public:
|
||||
static bool is_replica_type_valid(const int32_t replica_type)
|
||||
{
|
||||
return REPLICA_TYPE_FULL == replica_type || REPLICA_TYPE_LOGONLY == replica_type ||
|
||||
@ -1780,7 +1780,7 @@ class ObReplicaTypeCheck {
|
||||
};
|
||||
|
||||
class ObMemstorePercentCheck {
|
||||
public:
|
||||
public:
|
||||
static bool is_memstore_percent_valid(const int64_t memstore_percent)
|
||||
{
|
||||
return 0 == memstore_percent || 100 == memstore_percent;
|
||||
@ -1937,14 +1937,14 @@ struct ObNumberDesc {
|
||||
|
||||
#define DEFINE_ALLOCATOR_WRAPPER \
|
||||
class IAllocator { \
|
||||
public: \
|
||||
public: \
|
||||
virtual ~IAllocator(){}; \
|
||||
virtual void* alloc(const int64_t size) = 0; \
|
||||
virtual void* alloc(const int64_t size, const lib::ObMemAttr& attr) = 0; \
|
||||
}; \
|
||||
template <class T> \
|
||||
class TAllocator : public IAllocator { \
|
||||
public: \
|
||||
public: \
|
||||
explicit TAllocator(T& allocator) : allocator_(allocator){}; \
|
||||
void* alloc(const int64_t size) \
|
||||
{ \
|
||||
@ -1956,7 +1956,7 @@ struct ObNumberDesc {
|
||||
return alloc(size); \
|
||||
}; \
|
||||
\
|
||||
private: \
|
||||
private: \
|
||||
T& allocator_; \
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user