Signed-off-by: Changcheng Liu <changcheng.liu@aliyun.com>
}
enum flag_t {
- FLAG_RUNTIME = 0x1, ///< option can change changed at runtime
+ FLAG_RUNTIME = 0x1, ///< option can be changed at runtime
FLAG_NO_MON_UPDATE = 0x2, ///< option cannot be changed via mon config
FLAG_STARTUP = 0x4, ///< option can only take effect at startup
FLAG_CLUSTER_CREATE = 0x8, ///< option only has effect at cluster creation
std::string_view n = str;
size_t u = str.find_first_not_of("0123456789-+");
int m = 0;
- // deal with unit prefix is there is one
+ // deal with unit prefix if there is one
if (u != std::string_view::npos) {
n = str.substr(0, u);
unit = str.substr(u, str.length() - u);