]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commit
osd/osd_types: add_next_event - add special handler for lost_revert
authorxie xingguo <xie.xingguo@zte.com.cn>
Mon, 26 Aug 2019 02:28:34 +0000 (10:28 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Mon, 26 Aug 2019 05:13:27 +0000 (13:13 +0800)
commitc165c5286a58975b81cb706b4d48d6600e399d0a
tree46730c51f9f237af5e4d17b55294b07fd33ad70d
parent81c4ed2b1d9ad64e47d83048d41f0c0666d90286
osd/osd_types: add_next_event - add special handler for lost_revert

For unfound objects, we might append LOST_REVERT log entries,
which shall allow these objects to be reverted to the newest
available version later.
However, we are currently lack of support to rewind the clean_regions
portion too when marking unfound objects as lost with inc-recovery mode
enabled. Hence we must mark these unfound-revert objects as fully dirty
to make sure they can be correctly recovered.

E.g.,:
- primary is pulling object A from replica 1
- object A is corrupted on replica 1
- object A is now unfound
- mark object A as lost, replica 1 will persist a wrong
  missing item for object A..

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
src/osd/osd_types.h