fix write redo log limit threshold too big bug
This commit is contained in:
@ -108,8 +108,8 @@ int ObDDLCtrlSpeedItem::refresh()
|
||||
} else {
|
||||
// archive is not on if ignore = true.
|
||||
write_speed_ = ignore ? std::max(refresh_speed, 1 * MIN_WRITE_SPEED) : std::max(archive_speed, 1 * MIN_WRITE_SPEED);
|
||||
disk_used_stop_write_threshold_ = (palf_opt.disk_options_.log_disk_utilization_threshold_ +
|
||||
palf_opt.disk_options_.log_disk_utilization_limit_threshold_) / 2;
|
||||
disk_used_stop_write_threshold_ = min(palf_opt.disk_options_.log_disk_utilization_threshold_,
|
||||
palf_opt.disk_options_.log_disk_utilization_limit_threshold_);
|
||||
need_stop_write_ = 100.0 * total_used_space / total_disk_space >= disk_used_stop_write_threshold_ ? true : false;
|
||||
}
|
||||
LOG_DEBUG("current ddl clog write speed", K(ret), K(need_stop_write_), K(ls_id_), K(archive_speed), K(write_speed_),
|
||||
|
||||
Reference in New Issue
Block a user