]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw/bucket_logging: fix dangling string_view from ternary temporary 69943/head
authorRonen Friedman <rfriedma@redhat.com>
Sun, 5 Jul 2026 12:46:48 +0000 (12:46 +0000)
committerRonen Friedman <rfriedma@redhat.com>
Sun, 5 Jul 2026 12:47:27 +0000 (12:47 +0000)
commita5807c0878749edff5b66854bf63b206af7ddec1
treeb7b5ca19b8fa41508cd16598ee7de04620224c4c
parent5be3fa605fb3c05457af87b5a0a1ff6bec7862c8
rgw/bucket_logging: fix dangling string_view from ternary temporary

Clearing a compilation warning:

The ternary operator created a temporary std::string to unify
const std::string& and const char* branches, leaving the
string_view pointing to a destroyed object. Replace with
find() + if/else to assign directly from stable storage.

Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
src/rgw/rgw_bucket_logging.cc