return 0;
}
-static int init_bucket_for_sync(const string& bucket_name, string& bucket_id)
+static int init_bucket_for_sync(const string& tenant, const string& bucket_name, string& bucket_id)
{
RGWBucketInfo bucket_info;
rgw_bucket bucket;
- int ret = init_bucket(bucket_name, bucket_id, bucket_info, bucket);
+ int ret = init_bucket(tenant, bucket_name, bucket_id, bucket_info, bucket);
if (ret == -ENOENT) {
if (bucket_id.empty()) {
cerr << "ERROR: bucket id specified" << std::endl;
cerr << "ERROR: bucket not specified" << std::endl;
return EINVAL;
}
- int ret = init_bucket_for_sync(bucket_name, bucket_id);
+ int ret = init_bucket_for_sync(tenant, bucket_name, bucket_id);
if (ret < 0) {
return -ret;
}
cerr << "ERROR: bucket not specified" << std::endl;
return EINVAL;
}
- int ret = init_bucket_for_sync(bucket_name, bucket_id);
+ int ret = init_bucket_for_sync(tenant, bucket_name, bucket_id);
if (ret < 0) {
return -ret;
}
cerr << "ERROR: bucket not specified" << std::endl;
return EINVAL;
}
- int ret = init_bucket_for_sync(bucket_name, bucket_id);
+ int ret = init_bucket_for_sync(tenant, bucket_name, bucket_id);
if (ret < 0) {
return -ret;
}
ldout(cct, 1) << "Finishing initialization of new store" << dendl;
// finish initializing the new store
ldout(cct, 1) << " - REST subsystem init" << dendl;
- rgw_rest_init(cct, store->get_zonegroup());
+ rgw_rest_init(cct, store, store->get_zonegroup());
ldout(cct, 1) << " - user subsystem init" << dendl;
rgw_user_init(store);
ldout(cct, 1) << " - user subsystem init" << dendl;