From: Matt Benjamin Date: Thu, 12 Oct 2017 15:44:45 +0000 (-0400) Subject: rgw_file: disable FLAG_EXACT_MATCH enforcement X-Git-Tag: v13.0.1~492^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F18335%2Fhead;p=ceph.git rgw_file: disable FLAG_EXACT_MATCH enforcement a. upstream motivating behavior no longer reproduces b. incorrect stat behavior observed, traced to exact match enforcement Signed-off-by: Matt Benjamin --- diff --git a/src/rgw/rgw_file.cc b/src/rgw/rgw_file.cc index 7feb9439d0551..b05b76d972f6b 100644 --- a/src/rgw/rgw_file.cc +++ b/src/rgw/rgw_file.cc @@ -201,6 +201,8 @@ namespace rgw { if (req.matched) { /* we need rgw object's key name equal to file name, if * not return NULL */ +#if 0 /* original behavior which motivated FLAG_EXACT_MATCH + * no longer reproduces */ if ((flags & RGWFileHandle::FLAG_EXACT_MATCH) && !req.exact_matched) { lsubdout(get_context(), rgw, 15) @@ -209,6 +211,7 @@ namespace rgw { << path << dendl; goto done; } +#endif fhr = lookup_fh(parent, path, RGWFileHandle::FLAG_CREATE| ((req.is_dir) ?