reformat source code
according to code styles, 'AccessModifierOffset' should be -2.
This commit is contained in:
@ -39,7 +39,7 @@ struct InfluencePlan {};
|
||||
struct NeedSerialize {};
|
||||
|
||||
class ObParameterAttr {
|
||||
public:
|
||||
public:
|
||||
ObParameterAttr()
|
||||
: section_(Section::OBSERVER),
|
||||
scope_(Scope::CLUSTER),
|
||||
@ -99,7 +99,7 @@ class ObParameterAttr {
|
||||
bool is_readonly() const;
|
||||
bool is_invisible() const;
|
||||
|
||||
private:
|
||||
private:
|
||||
Section::SectionInfo section_;
|
||||
Scope::ScopeInfo scope_;
|
||||
Source::SourceInfo source_;
|
||||
|
||||
@ -36,7 +36,7 @@
|
||||
// TODO: use parameter instead of config
|
||||
#define _DEF_PARAMETER_EASY(param, scope, name, args...) \
|
||||
class ObConfig##param##Item##_##name : public common::ObConfig##param##Item { \
|
||||
public: \
|
||||
public: \
|
||||
ObConfig##param##Item##_##name() : common::ObConfig##param##Item(local_container(), scope, #name, args) \
|
||||
{} \
|
||||
template <class T> \
|
||||
@ -49,7 +49,7 @@
|
||||
|
||||
#define _DEF_PARAMETER_RANGE_EASY(param, scope, name, args...) \
|
||||
class ObConfig##param##Item##_##name : public common::ObConfig##param##Item { \
|
||||
public: \
|
||||
public: \
|
||||
ObConfig##param##Item##_##name() : common::ObConfig##param##Item(local_container(), scope, #name, args) \
|
||||
{} \
|
||||
template <class T> \
|
||||
@ -62,7 +62,7 @@
|
||||
|
||||
#define _DEF_PARAMETER_CHECKER_EASY(param, scope, name, def, checker, args...) \
|
||||
class ObConfig##param##Item##_##name : public common::ObConfig##param##Item { \
|
||||
public: \
|
||||
public: \
|
||||
ObConfig##param##Item##_##name() : common::ObConfig##param##Item(local_container(), scope, #name, def, args) \
|
||||
{ \
|
||||
add_checker(new (std::nothrow) checker()); \
|
||||
|
||||
@ -1430,7 +1430,7 @@ DEF_TIME(ilog_index_expire_time, OB_CLUSTER_PARAMETER, "7d", "[0s, 60d]",
|
||||
"specifies the expire time of ilog_index, can use this parameter to limit the"
|
||||
"memory usage of file_id_cache",
|
||||
ObParameterAttr(Section::CLOG, Source::DEFAULT, EditLevel::DYNAMIC_EFFECTIVE));
|
||||
//auto drop restoring tenant if physical restore fails
|
||||
// auto drop restoring tenant if physical restore fails
|
||||
DEF_BOOL(_auto_drop_tenant_if_restore_failed, OB_CLUSTER_PARAMETER, "True",
|
||||
"auto drop restoring tenant if physical restore fails",
|
||||
ObParameterAttr(Section::OBSERVER, Source::DEFAULT, EditLevel::DYNAMIC_EFFECTIVE));
|
||||
"auto drop restoring tenant if physical restore fails",
|
||||
ObParameterAttr(Section::OBSERVER, Source::DEFAULT, EditLevel::DYNAMIC_EFFECTIVE));
|
||||
|
||||
Reference in New Issue
Block a user