replace ts related to ddl with scn.

This commit is contained in:
obdev
2022-11-28 02:21:13 +00:00
committed by ob-robot
parent bbec6aff49
commit 8a4d14122f
539 changed files with 17685 additions and 173434 deletions

View File

@ -1929,55 +1929,6 @@ int ObBackupType::set_backup_type(
return ret;
}
const char *ObBackupDeviceType::get_backup_device_str() const
{
const char *str = "UNKNOWN";
const char *backup_device_type_strs[] = {
"file://",
"oss://",
"ofs://",
"cos://",
};
STATIC_ASSERT(MAX == ARRAYSIZEOF(backup_device_type_strs), "types count mismatch");
if (type_ < 0 || type_ >= MAX) {
LOG_ERROR("invalid backup device type", K(type_));
} else {
str = backup_device_type_strs[type_];
}
return str;
}
int ObBackupDeviceType::set_backup_device_type(
const char *buf)
{
int ret = OB_SUCCESS;
if (OB_ISNULL(buf)) {
ret = OB_INVALID_ARGUMENT;
LOG_WARN("set backup device get invalid argument", K(ret), KP(buf));
} else {
const char *backup_device_type_strs[] = {
"file://",
"oss://",
"ofs://",
"cos://",
};
BackupDeviceType tmp_type = MAX;
STATIC_ASSERT(MAX == ARRAYSIZEOF(backup_device_type_strs), "types count mismatch");
for (int64_t i = 0; i < ARRAYSIZEOF(backup_device_type_strs); i++) {
if (0 == STRCMP(backup_device_type_strs[i], buf)) {
tmp_type = static_cast<BackupDeviceType>(i);
}
}
if (MAX == tmp_type) {
ret = OB_ENTRY_NOT_EXIST;
LOG_WARN("backup device type str not found", K(ret), K(buf));
} else {
type_ = tmp_type;
}
}
return ret;
}
ObBaseBackupInfoStruct::ObBaseBackupInfoStruct()
: tenant_id_(OB_INVALID_ID), backup_set_id_(0), incarnation_(0), backup_dest_(),
@ -2127,7 +2078,7 @@ bool ObBackupUtils::is_need_retry_error(const int err)
case OB_LOG_ARCHIVE_STAT_NOT_MATCH :
case OB_NOT_SUPPORTED :
case OB_TENANT_HAS_BEEN_DROPPED :
case OB_CS_OUTOF_DISK_SPACE :
case OB_SERVER_OUTOF_DISK_SPACE :
case OB_HASH_NOT_EXIST:
case OB_ARCHIVE_LOG_NOT_CONTINUES_WITH_DATA :
case OB_BACKUP_DELETE_BACKUP_SET_NOT_ALLOWED :