summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYehuda Sadeh <yehuda@inktank.com>2013-11-02 05:00:24 +0100
committerYehuda Sadeh <yehuda@inktank.com>2013-11-02 05:00:24 +0100
commit52a1d6d3564565c3794fe24093def0a9000540ed (patch)
tree2b0051c0ffc4a0aa8c7c471043e5ad696b01308f
parentMerge pull request #802 from ceph/wip-6673b (diff)
parentrgw: don't turn 404 into 400 for the replicalog api (diff)
downloadceph-52a1d6d3564565c3794fe24093def0a9000540ed.tar.xz
ceph-52a1d6d3564565c3794fe24093def0a9000540ed.zip
Merge pull request #804 from jdurgin/wip-rgw-replica-log-next
rgw: don't turn 404 into 400 for the replicalog api Reviewed-by: Yehuda Sadeh <yehuda@inktank.com>
-rw-r--r--src/rgw/rgw_rest_replica_log.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/rgw/rgw_rest_replica_log.cc b/src/rgw/rgw_rest_replica_log.cc
index 600a8edb78c..2543f32fba6 100644
--- a/src/rgw/rgw_rest_replica_log.cc
+++ b/src/rgw/rgw_rest_replica_log.cc
@@ -171,7 +171,9 @@ static int bucket_instance_to_bucket(RGWRados *store, string& bucket_instance, r
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;
}