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

@ -19,19 +19,19 @@
namespace oceanbase {
namespace rootserver {
class ObResourceWeightParser {
public:
public:
/*
* if weight doesn't not sum to 1, return OB_INVALID_CONFIG
*/
static int parse(const char* str, ObResourceWeight& weight);
private:
private:
class MyCb : public share::ObKVMatchCb {
public:
public:
MyCb(ObResourceWeight& weight) : weight_(weight){};
int match(const char* key, const char* value);
private:
private:
/* functions */
typedef void (*WeightSetter)(ObResourceWeight& weight, double);
static void set_iops(ObResourceWeight& weight, double val)
@ -53,7 +53,7 @@ class ObResourceWeightParser {
ObResourceWeight& weight_;
};
private:
private:
/* variables */
DISALLOW_COPY_AND_ASSIGN(ObResourceWeightParser);
};