Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
(cherry picked from commit
094fe3f0cfeb27b32abfc93b07054b60de363a20)
See: http://tracker.ceph.com/issues/17556
See: https://github.com/ceph/ceph/pull/11368
Signed-off-by: Robin H. Johnson <robin.johnson@dreamhost.com>
}
delete target_shards[i];
}
+
+ bucket_op.set_bucket_id(new_bucket_info.bucket.bucket_id);
+ bucket_op.set_user_id(new_bucket_info.owner);
+ string err;
+ int r = RGWBucketAdminOp::link(store, bucket_op, &err);
+ if (r < 0) {
+ cerr << "failed to link new bucket instance (bucket_id=" << new_bucket_info.bucket.bucket_id << ": " << err << "; " << cpp_strerror(-r) << std::endl;
+ return -r;
+ }
}
if (opt_cmd == OPT_OBJECT_UNLINK) {