From: Matt Benjamin Date: Mon, 16 Mar 2026 19:35:48 +0000 (-0400) Subject: rgw_file: always assign string_view of current common_prefix X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=b9b0529fe263624e8e4deb8f367553faec583044;p=ceph.git rgw_file: always assign string_view of current common_prefix Fixes: https://tracker.ceph.com/issues/75540 Signed-off-by: Matt Benjamin --- diff --git a/src/rgw/rgw_file_int.h b/src/rgw/rgw_file_int.h index a001b85ee8cc..dea502bcdec8 100644 --- a/src/rgw/rgw_file_int.h +++ b/src/rgw/rgw_file_int.h @@ -1617,7 +1617,8 @@ public: void parse_cp() { if (is_cp()) { /* leading-/ skip case */ - if (cp_iter->first == "/") { + if (cp_iter->first == "/") { + cp_sref = std::string_view{cp_iter->first}; _skip_cp = true; return; } else