Skip to content

Commit

Permalink
rgw_file: deep stat handling
Browse files Browse the repository at this point in the history
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 bca1b09)
  • Loading branch information
mattbenjamin authored and Prashant D committed Aug 9, 2018
1 parent 35dbe36 commit 38a0296
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/rgw/rgw_file.h
Expand Up @@ -2265,6 +2265,9 @@ class RGWStatLeafRequest : public RGWLibRequest,
<< " target = " << path << ""
<< dendl;
matched = true;
/* match-dir case (trailing '/') */
if (name == prefix + "/")
exact_matched = true;
is_dir = true;
break;
}
Expand Down

0 comments on commit 38a0296

Please sign in to comment.