[FEAT MERGE] datafile auto extend

This commit is contained in:
obdev
2023-04-26 15:45:40 +00:00
committed by ob-robot
parent d525c7da3f
commit 2293904cc0
24 changed files with 350 additions and 34 deletions

View File

@ -116,6 +116,24 @@ bool ObServerResourceInfo::operator!=(const ObServerResourceInfo &other) const
|| disk_in_use_ != other.disk_in_use_;
}
int ObServerResourceInfo::assign(const ObServerResourceInfo& other)
{
int ret = OB_SUCCESS;
cpu_ = other.cpu_;
mem_in_use_ = other.mem_in_use_;
mem_total_ = other.mem_total_;
disk_in_use_ = other.disk_in_use_;
disk_total_ = other.disk_total_;
log_disk_total_ = other.log_disk_total_;
report_log_disk_assigned_ = other.report_log_disk_assigned_;
report_cpu_assigned_ = other.report_cpu_assigned_;
report_cpu_max_assigned_ = other.report_cpu_max_assigned_;
report_mem_assigned_ = other.report_mem_assigned_;
return ret;
}
OB_SERIALIZE_MEMBER(ObServerResourceInfo,
cpu_,
report_cpu_assigned_,