]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw_file: disable FLAG_EXACT_MATCH enforcement 18335/head
authorMatt Benjamin <mbenjamin@redhat.com>
Thu, 12 Oct 2017 15:44:45 +0000 (11:44 -0400)
committerMatt Benjamin <mbenjamin@redhat.com>
Wed, 18 Oct 2017 20:29:19 +0000 (16:29 -0400)
a. upstream motivating behavior no longer reproduces
b. incorrect stat behavior observed, traced to exact match enforcement

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
src/rgw/rgw_file.cc

index 7feb9439d05517386ecdf6a9d9f2abf20f54aa4f..b05b76d972f6b9cff2f69a89ca6fe1e303fd6c74 100644 (file)
@@ -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) ?