Fixes: https://tracker.ceph.com/issues/43255
- when linking bucket, use creation time from bucket instance info
- creating an already existing bucket, keep the original bucket instance info
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
/* link to user */
r = store->ctl()->bucket->link_bucket(user_info.user_id,
bucket_info.bucket,
- ceph::real_time(),
+ ep.creation_time,
y, true, &ep_data);
if (r < 0) {
set_err_msg(err_msg, "failed to relink bucket");
/* continue anyway */
}
}
+
+ info = std::move(orig_info);
/* ret == -EEXIST here */
}
return ret;