From bca1b099735dd74908ca9b1cf509c7afcbd7e3db Mon Sep 17 00:00:00 2001 From: Matt Benjamin Date: Fri, 13 Jul 2018 17:35:05 -0400 Subject: [PATCH] rgw_file: deep stat handling 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 --- src/rgw/rgw_file.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/rgw/rgw_file.h b/src/rgw/rgw_file.h index e65acc79b4dd4..6bbdb3f978f85 100644 --- a/src/rgw/rgw_file.h +++ b/src/rgw/rgw_file.h @@ -2265,6 +2265,9 @@ public: << " target = " << path << "" << dendl; matched = true; + /* match-dir case (trailing '/') */ + if (name == prefix + "/") + exact_matched = true; is_dir = true; break; } -- 2.39.5