Change object storage errno

This commit is contained in:
kpole
2024-11-01 10:17:01 +00:00
committed by ob-robot
parent a7f49f4f53
commit 9c1ad96b7b
27 changed files with 297 additions and 237 deletions

View File

@ -130,7 +130,7 @@ TEST_F(TestBackupIOAdapterAccessCos, test_basic_rw)
ASSERT_EQ(5, read_size);
offset = strlen(write_content);
ASSERT_EQ(OB_COS_ERROR,
ASSERT_EQ(OB_OBJECT_STORAGE_IO_ERROR,
adapter.read_part_file(uri, &cos_base, read_buf, sizeof(read_buf), offset, read_size,
ObStorageIdMod::get_default_id_mod()));

View File

@ -127,7 +127,7 @@ TEST_F(TestBackupIOAdapterAccessS3, test_basic_rw)
ASSERT_EQ(5, read_size);
// offset = strlen(write_content);
// ASSERT_EQ(OB_COS_ERROR,
// ASSERT_EQ(OB_OBJECT_STORAGE_IO_ERROR,
// adapter.read_part_file(uri, &s3_base, read_buf, sizeof(read_buf), offset, read_size));
ASSERT_EQ(OB_SUCCESS, adapter.del_file(uri, &s3_base));