]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw_file: deep stat handling 23499/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:53 +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 bfb95be737abe29216d666778c805f9fce0765ee..796dcbf9d37596aed9ee294b6677a0959e10123b 100644 (file)
@@ -2252,6 +2252,9 @@ public:
                             << " target = " << path << ""
                             << dendl;
       matched = true;
+      /* match-dir case (trailing '/') */
+      if (name == prefix + "/")
+       exact_matched = true;
       is_dir = true;
       break;
     }