patch backup piece to 3.1. open source
This commit is contained in:
7
deps/oblib/src/lib/utility/utility.cpp
vendored
7
deps/oblib/src/lib/utility/utility.cpp
vendored
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user