ldout(cct, 0) << "ERROR: src_grant.get_id() failed" << dendl;
return -EINVAL;
}
- email = u.id; // XXX none of that .to_str() stuff here, but why?
+ email = u.id;
ldout(cct, 10) << "grant user email=" << email << dendl;
if (rgw_get_user_info_by_email(store, email, grant_user) < 0) {
ldout(cct, 10) << "grant user email not found or other error" << dendl;
int rgw_link_bucket(RGWRados *store, const rgw_user& user_id, rgw_bucket& bucket, time_t creation_time, bool update_entrypoint)
{
int ret;
- // XXX Actually, should we use user_id.tenant when creating bucket?
string& tenant_name = bucket.tenant;
string& bucket_name = bucket.name;
if (!exists || old_bci.info.bucket.bucket_id != bci.info.bucket.bucket_id) {
/* a new bucket, we need to select a new bucket placement for it */
- // XXX not sure if this is correct -- stolen from Radoslaw; what about get()?
string tenant_name;
string bucket_name;
parse_bucket(entry, tenant_name, bucket_name);