Commit 4289371
committed
osd_types: Restore new_object marking for delete missing entries
Recent changes (PR ceph#29893) removed the “new_object” parameter from missing.add() and the
pg_missing_item constructor. As a result, when processing delete log entries,
if an object is found on disk, its on‑disk version is stored as “have” instead
of the default eversion_t() (0'0). The invariant in read_log_and_missing() then
fails because delete entries are expected to have “have” set to eversion_t().
This patch reintroduces the following check:
if (have == eversion_t())
clean_regions.mark_object_new();
By doing so, we ensure that when the on‑disk “have” is default, the missing record
is marked as new—restoring the previous behavior and satisfying the invariant for
delete operations.
Fixes: https://tracker.ceph.com/issues/45702
Signed-off-by: Nitzan Mordechai <[email protected]>1 parent a5d21ee commit 4289371
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4787 | 4787 | | |
4788 | 4788 | | |
4789 | 4789 | | |
| 4790 | + | |
| 4791 | + | |
4790 | 4792 | | |
4791 | 4793 | | |
4792 | 4794 | | |
| |||
0 commit comments