[CP] Add checksum type check and multipart upload check in backup connectivity check
This commit is contained in:
10
deps/oblib/src/lib/restore/ob_object_device.cpp
vendored
10
deps/oblib/src/lib/restore/ob_object_device.cpp
vendored
@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user