]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd: Add asserts to look for potential missing list corruption. 66799/head
authorAlex Ainscow <aainscow@uk.ibm.com>
Mon, 12 Jan 2026 09:42:09 +0000 (09:42 +0000)
committerAlex Ainscow <aainscow@uk.ibm.com>
Mon, 2 Feb 2026 13:59:22 +0000 (13:59 +0000)
commit9f81e3fcf15c742f6c195b54886bd87bb193dd3d
tree920203a223cf6842ab6e73a9e819fae5140810a4
parentea27f511bf287592db2ea7dde675b58c6fe8eff4
osd:  Add asserts to look for potential missing list corruption.

The missing list implementation relies on some assumptions about
the way in which it is used.  The assumption is that there is a
1:1 mapping between objects and versions. Care must be taken by
callers to ensure that any changes to this 1:1 mapping are done
in such a way as to not corrupt the missing or rmissing list.

This change adds several asserts which police this assumption.

The asserts are being added in a second commit, so the basic
fix can potentially be backported without backporting the
asserts. It is possible that the assert could detect corruption
that otherwise would not have been a problem.

Signed-off-by: Alex Ainscow <aainscow@uk.ibm.com>
src/osd/osd_types.h