From b8ced4ffeb9d0dcbfe64e3247925f9a2bc90d032 Mon Sep 17 00:00:00 2001 From: HappyUncle Date: Thu, 19 Sep 2024 14:21:04 +0800 Subject: [PATCH] fix: update example Signed-off-by: HappyUncle --- cloud/examples/clone_example.cc | 4 ++-- cloud/examples/cloud_dump.cc | 2 +- cloud/examples/cloud_durable_example.cc | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cloud/examples/clone_example.cc b/cloud/examples/clone_example.cc index b1c489219dbc..7192813c63b9 100644 --- a/cloud/examples/clone_example.cc +++ b/cloud/examples/clone_example.cc @@ -43,7 +43,7 @@ Status CloneDB(const std::string& clone_name, const std::string& src_bucket, // Create new AWS env CloudFileSystem* cfs; - Status st = CloudFileSystem::NewAwsFileSystem( + Status st = CloudFileSystemEnv::NewAwsFileSystem( FileSystem::Default(), src_bucket, src_object_path, kRegion, dest_bucket, dest_object_path, kRegion, cloud_fs_options, nullptr, &cfs); if (!st.ok()) { @@ -108,7 +108,7 @@ int main() { // Create a new AWS cloud env Status CloudFileSystem* cfs; - Status s = CloudFileSystem::NewAwsFileSystem( + Status s = CloudFileSystemEnv::NewAwsFileSystem( FileSystem::Default(), kBucketSuffix, kDBPath, kRegion, kBucketSuffix, kDBPath, kRegion, cloud_fs_options, nullptr, &cfs); if (!s.ok()) { diff --git a/cloud/examples/cloud_dump.cc b/cloud/examples/cloud_dump.cc index 36f25c54acf4..db9682bb070f 100644 --- a/cloud/examples/cloud_dump.cc +++ b/cloud/examples/cloud_dump.cc @@ -53,7 +53,7 @@ int main() { // Create a new AWS cloud env Status CloudFileSystem* cfs; - Status s = CloudFileSystem::NewAwsFileSystem( + Status s = CloudFileSystemEnv::NewAwsFileSystem( FileSystem::Default(), kBucketSuffix, kDBPath, kRegion, kBucketSuffix, kDBPath, kRegion, cloud_fs_options, nullptr, &cfs); if (!s.ok()) { diff --git a/cloud/examples/cloud_durable_example.cc b/cloud/examples/cloud_durable_example.cc index 642226305cef..b3261a1778db 100644 --- a/cloud/examples/cloud_durable_example.cc +++ b/cloud/examples/cloud_durable_example.cc @@ -56,7 +56,7 @@ int main() { // Create a new AWS cloud env Status CloudFileSystem* cfs; - Status s = CloudFileSystem::NewAwsFileSystem( + Status s = CloudFileSystemEnv::NewAwsFileSystem( FileSystem::Default(), kBucketSuffix, kDBPath, kRegion, kBucketSuffix, kDBPath, kRegion, cloud_fs_options, nullptr, &cfs); if (!s.ok()) {