patch backup piece to 3.1. open source

This commit is contained in:
xuhuleon
2021-09-02 15:26:39 +08:00
committed by wangzelin.wzl
parent 153f16ad8a
commit 62cb470338
314 changed files with 88279 additions and 35466 deletions

View File

@ -1507,7 +1507,8 @@ int ObBandwidthThrottle::limit_and_sleep(
K(speed_KB_per_s),
K_(total_sleep_ms),
K_(total_bytes),
K_(rate),
"rate_KB/s",
rate_,
K(print_interval_ms));
last_printed_bytes_ = total_bytes_;
last_printed_sleep_ms_ = total_sleep_ms_;
@ -1786,8 +1787,8 @@ int ob_strtoull(const char* str, char*& endptr, uint64_t& res)
if (OB_ISNULL(str)) {
ret = OB_INVALID_ARGUMENT;
} else {
tmp_res = strtoll(str, &endptr, 10);
if (INT64_MAX == tmp_res) {
tmp_res = strtoull(str, &endptr, 10);
if (UINT64_MAX == tmp_res) {
ret = OB_SIZE_OVERFLOW;
} else {
res = tmp_res;