]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd/PeeringState: do not trim pg log past last_update_ondisk
authorxie xingguo <xie.xingguo@zte.com.cn>
Thu, 12 Mar 2020 10:01:45 +0000 (18:01 +0800)
committerNathan Cutler <ncutler@suse.com>
Tue, 28 Apr 2020 17:47:08 +0000 (19:47 +0200)
commit8e605b00eb48dc6ae0f61252dad3721e0739d02b
treec978c80f0d4c064803851ca6b9c000562e92e90c
parentfcb0536921a652f58e87fc2b3304d30b9d6253c0
osd/PeeringState: do not trim pg log past last_update_ondisk

Trimming past last_update_ondisk would be really bad, e.g.,
a new interval change would cancel&redo a previous op, and if
we trim past last_update_ondisk, there could be potential
object inconsistencies as log merging won't necessarily be able
to find all divergent entries later (we lost track of the unfinished
op that should really be reverted).

Fixes: https://tracker.ceph.com/issues/44532
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
(cherry picked from commit eef1928e0153f09dc2522bb885b0ad9f5c65f4bd)
src/osd/PeeringState.cc