From: Yehuda Sadeh Date: Thu, 22 Aug 2013 00:22:46 +0000 (-0700) Subject: rgw: OPTIONS request doesn't need to read object info X-Git-Tag: v0.69~14^2~6 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=df4f712f4aa64eca0cc2e5df50702256cacfb51d;p=ceph.git rgw: OPTIONS request doesn't need to read object info This is a bucket-only operation, so we shouldn't look at the object. Object may not exist and we might respond with Not Exists response which is not what we want. Signed-off-by: Yehuda Sadeh --- diff --git a/src/rgw/rgw_rest.cc b/src/rgw/rgw_rest.cc index 571e48696422..05d67fbeeff0 100644 --- a/src/rgw/rgw_rest.cc +++ b/src/rgw/rgw_rest.cc @@ -1062,7 +1062,7 @@ int RGWHandler_ObjStore::read_permissions(RGWOp *op_obj) case OP_COPY: // op itself will read and verify the permissions return 0; case OP_OPTIONS: - only_bucket = false; + only_bucket = true; break; default: return -EINVAL;