]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw_file: deep stat handling 23498/head
authorMatt Benjamin <mbenjamin@redhat.com>
Fri, 13 Jul 2018 21:35:05 +0000 (17:35 -0400)
committerPrashant D <pdhange@redhat.com>
Thu, 9 Aug 2018 01:24:07 +0000 (21:24 -0400)
A change to the exact-match behavior in leaf stat operations is
required to support instantiation of a full path hierarchy when
one or more intervening directories has not been enumerated.

Fixes: http://tracker.ceph.com/issues/24915
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
(cherry picked from commit bca1b099735dd74908ca9b1cf509c7afcbd7e3db)

src/rgw/rgw_file.h

index b83761fb5ee8e6241188b56e8d5df95643f9e357..901252d7770ed1695c991e726039fbcdabdca872 100644 (file)
@@ -2265,6 +2265,9 @@ public:
                             << " target = " << path << ""
                             << dendl;
       matched = true;
+      /* match-dir case (trailing '/') */
+      if (name == prefix + "/")
+       exact_matched = true;
       is_dir = true;
       break;
     }