Skip to content

Commit 7aa80d0

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 d603088 commit 7aa80d0

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

cloud/examples/cloud_dump.cc

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,13 @@ int main() {
4242
char* user = getenv("USER");
4343
kBucketSuffix.append(user);
4444

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

4853
// Create a new AWS cloud env Status
4954
CloudEnv* cenv;

0 commit comments

Comments
 (0)