]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
test/osd: cover clear_omap tombstoning of cached keys 69777/head
authorSun Yuechi <sunyuechi@iscas.ac.cn>
Sat, 27 Jun 2026 07:23:51 +0000 (15:23 +0800)
committerSun Yuechi <sunyuechi@iscas.ac.cn>
Sat, 27 Jun 2026 07:44:06 +0000 (15:44 +0800)
commitcd8532314ca38f2c925d1a7395481fcaa434c72a
tree420562e33603442b37755c1bfb5ebca81b5c0b7d
parentaa82faec86d8c538f7eae14a88effefb0f1ac6d5
test/osd: cover clear_omap tombstoning of cached keys

Add a regression test that processes an insert so the keys are cached
in key_map, then processes a later clear_omap and asserts the cached
keys are returned as tombstones.

This would have caught the by-value bind in process_entries, where
clear_omap mutated copies and left already-cached keys untouched.

Signed-off-by: Sun Yuechi <sunyuechi@iscas.ac.cn>
src/test/osd/test_ec_omap_journal.cc