[FEAT MERGE]Added object storage COS as the backup destination

This commit is contained in:
WenJinyu
2023-08-21 07:10:29 +00:00
committed by ob-robot
parent 26d0ec3d60
commit 4144cf1751
45 changed files with 5000 additions and 687 deletions

View File

@ -48,6 +48,8 @@ int ObDeviceManager::init_devices_env()
OB_LOG(WARN, "Fail to init allocator ", K(ret));
} else if (OB_FAIL(init_oss_env())) {
OB_LOG(WARN, "fail to init oss storage", K(ret));
} else if (OB_FAIL(init_cos_env())) {
OB_LOG(WARN, "fail to init cos storage", K(ret));
}
}
@ -81,6 +83,7 @@ void ObDeviceManager::destroy()
}
allocator_.reset();
fin_oss_env();
fin_cos_env();
is_init_ = false;
device_count_ = 0;
OB_LOG_RET(WARN, ret_dev, "release the init resource", K(ret_dev), K(ret_handle));