[CP] Add checksum type check and multipart upload check in backup connectivity check

This commit is contained in:
LoLolobster
2024-03-07 03:45:04 +00:00
committed by ob-robot
parent bf01313a8f
commit 40dcf13bec
9 changed files with 112 additions and 21 deletions

View File

@ -20,6 +20,16 @@ namespace common
const char *OB_STORAGE_ACCESS_TYPES_STR[] = {"reader", "adaptive_reader", "overwriter",
"appender", "random_write", "multipart_writer"};
const char *get_storage_access_type_str(const ObStorageAccessType &type)
{
const char *str = "UNKNOWN";
STATIC_ASSERT(static_cast<int64_t>(OB_STORAGE_ACCESS_MAX_TYPE) == ARRAYSIZEOF(OB_STORAGE_ACCESS_TYPES_STR), "ObStorageAccessType count mismatch");
if (type >= OB_STORAGE_ACCESS_READER && type < OB_STORAGE_ACCESS_MAX_TYPE) {
str = OB_STORAGE_ACCESS_TYPES_STR[type];
}
return str;
}
ObObjectDevice::ObObjectDevice()
: storage_info_(), is_started_(false), lock_(common::ObLatchIds::OBJECT_DEVICE_LOCK)
{