fixed 990, provide a parameter to assign the size of clog disk (#1003)

* fixed , provide a parameter to assign the size of clog disk

* fixed , remove redundant log

* fixed , modify codes accroding to comment

* fixed , change statfs to statvfs

* fixed #990, rename clog_disk_limit_size to log_disk_size

* fixed #990, merge master and add config to observer.include.yaml
This commit is contained in:
刘汉乙
2022-08-26 11:11:37 +08:00
committed by GitHub
parent 281285bde0
commit cc7f230ae5
9 changed files with 119 additions and 32 deletions

View File

@ -867,6 +867,11 @@ int ObServer::init_config()
config_.syslog_level.set_value(OB_LOGGER.get_level_str());
if (opts_.data_dir_ && strlen(opts_.data_dir_) > 0) {
config_.data_dir.set_value(opts_.data_dir_);
config_.data_dir.set_version(start_time_);
}
if (opts_.optstr_ && strlen(opts_.optstr_) > 0) {
if (OB_FAIL(config_.add_extra_config(opts_.optstr_, start_time_))) {
LOG_ERROR("invalid config from cmdline options", K(opts_.optstr_), K(ret));
@ -888,11 +893,6 @@ int ObServer::init_config()
LOG_INFO("set CLUSTER_ID for rpc", "cluster_id", config_.cluster_id.get_value());
}
if (opts_.data_dir_ && strlen(opts_.data_dir_) > 0) {
config_.data_dir.set_value(opts_.data_dir_);
config_.data_dir.set_version(start_time_);
}
// The command line is specified, subject to the command line
if (opts_.use_ipv6_) {
config_.use_ipv6 = opts_.use_ipv6_;