]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
crimson/osd: fix omap key removal encoding mismatch 67358/head
authorKautilya Tripathi <kautilya.tripathi@ibm.com>
Mon, 16 Feb 2026 07:23:37 +0000 (12:53 +0530)
committerKautilya Tripathi <kautilya.tripathi@ibm.com>
Mon, 6 Apr 2026 04:55:23 +0000 (10:25 +0530)
commit8f359724d2b43286fb3b258bb28cec824c0301fc
treeea416ab094e1949650c084f0c561e58207b6c23c
parentcdc9c70c765b1b45ae733283a595014fe3cc4a4c
crimson/osd: fix omap key removal encoding mismatch

RGW bucket deletion via cls_user_remove_bucket was failing on Crimson
because cls_cxx_map_remove_key() encoded a std::vector<string> while
PGBackend::omap_remove_key() expected and decoded a std::set<string>
using decode_str_set_to_bl(). This mismatch caused OMAP keys to not be
removed, leaving stale bucket entries that broke test_list_buckets_*.

Fix by encoding std::set<std::string> in cls_cxx_map_remove_key() to
match the backend's decode_str_set_to_bl() expectation, aligning with
classic OSD behavior.

This fixes: s3 test_list_buckets_* tests on Crimson

Signed-off-by: Kautilya Tripathi <kautilya.tripathi@ibm.com>
src/crimson/osd/objclass.cc