]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd: Add asserts to look for potential missing list corruption. 68716/head
authorAlex Ainscow <aainscow@uk.ibm.com>
Mon, 12 Jan 2026 09:42:09 +0000 (09:42 +0000)
committerAlex Ainscow <aainscow@uk.ibm.com>
Fri, 1 May 2026 14:13:11 +0000 (15:13 +0100)
commitd04778ba7117b088e784f87adebc5f224b704e22
tree4740439f2f0a5ee8b1dfe45b2b316748cef6a86a
parent81212c7c8b3fc6fdad9e254038123ecd3a5dab6c
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>
(cherry picked from commit 9f81e3fcf15c742f6c195b54886bd87bb193dd3d)
src/osd/osd_types.h