404 is not actually a problem to clients like radosgw-agent, but 400
implies something about the request was incorrect.
Backport: dumpling
Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
(cherry picked from commit
306ec7142d699c26ce874b11dc02ccdb3cf296c7)
int r = store->get_bucket_instance_info(NULL, bucket_instance, bucket_info, &mtime, NULL);
if (r < 0) {
- dout(5) << "could not get bucket instance info for bucket=" << bucket_instance << dendl;
+ dout(5) << "could not get bucket instance info for bucket=" << bucket_instance << ": " << cpp_strerror(r) << dendl;
+ if (r == -ENOENT)
+ return r;
return -EINVAL;
}