Skip to content

Commit d603088

Browse files
Add explicitly using bucket prefix
This is to more easily demonstrate support for using with a bucket other than one that starts with "rockset.".
1 parent c490198 commit d603088

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

cloud/examples/cloud_durable_example.cc

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,14 @@ int main() {
4545
char* user = getenv("USER");
4646
kBucketSuffix.append(user);
4747

48-
// create a bucket name for debugging purposes
49-
const std::string bucketName = "rockset." + kBucketSuffix;
48+
// "rockset." is the default bucket prefix
49+
const std::string bucketPrefix = "rockset.";
50+
cloud_env_options.src_bucket.SetBucketName(kBucketSuffix,bucketPrefix);
51+
cloud_env_options.dest_bucket.SetBucketName(kBucketSuffix,bucketPrefix);
5052

53+
// create a bucket name for debugging purposes
54+
const std::string bucketName = bucketPrefix + kBucketSuffix;
55+
5156
// Create a new AWS cloud env Status
5257
CloudEnv* cenv;
5358
Status s =

0 commit comments

Comments
 (0)