]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw/cls: Make cmpomap workable for atomic updates with different values 70048/head
authorYixin Jin <yjin77@yahoo.ca>
Wed, 8 Jul 2026 13:46:12 +0000 (09:46 -0400)
committerYixin Jin <yjin77@yahoo.ca>
Thu, 9 Jul 2026 15:13:53 +0000 (11:13 -0400)
commitb36fc5500b5d0adf75467afcd35b38d52dbe343c
treea2993939ff417d0321762ce7ae97d0c90a2873ba
parent1ecc86bc7c408076bf015d0e89963145ba2582a9
rgw/cls: Make cmpomap workable for atomic updates with different values

1. Make cmp_vals() to take in ObjectOperation to allow
it work with ObjectWriteOperation.

2. Add comments for cmp_set_vals() regarding how different
omap values may be set.

3. Add unit tests to verify the transactional nature of
ObjectWriteOperation used when setting different omap values.

Fixes: https://tracker.ceph.com/issues/76622
Signed-off-by: Yixin Jin <yjin77@yahoo.ca>
src/cls/cmpomap/client.cc
src/cls/cmpomap/client.h
src/test/cls_cmpomap/test_cls_cmpomap.cc