]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw_file: always assign string_view of current common_prefix
authorMatt Benjamin <mbenjamin@redhat.com>
Mon, 16 Mar 2026 19:35:48 +0000 (15:35 -0400)
committerMatt Benjamin <mbenjamin@redhat.com>
Wed, 18 Mar 2026 13:58:02 +0000 (09:58 -0400)
Fixes: https://tracker.ceph.com/issues/75540
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
src/rgw/rgw_file_int.h

index a001b85ee8cc0905fbe0033a73f3a0de28a697a1..dea502bcdec8840653a49556d5f80c9bf972da79 100644 (file)
@@ -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