]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commit
osd: Refuse to commit/rollforward beyond end of log.
authorAlex Ainscow <aainscow@uk.ibm.com>
Tue, 13 May 2025 11:55:14 +0000 (12:55 +0100)
committerLaura Flores <lflores@ibm.com>
Wed, 9 Jul 2025 15:47:24 +0000 (15:47 +0000)
commitb169a3d350911c81f557a120512a3ef576e87d6c
tree84f643f538395c369af5fa1f02a952ff514c7df5
parentf51f60f3b27e4339972645cdeb34369a164e6ae2
osd: Refuse to commit/rollforward beyond end of log.

In optimised EC, if transaction is applied to all shards, followed by a
partial transaction AND these two transactions overlap, then it is
possible for the non-primary shards to commit a version which is after
then end of the log.

This commit changes the apply_log such that the commit version will be
changed to the head of the log in such situations.

Signed-off-by: Alex Ainscow <aainscow@uk.ibm.com>
(cherry picked from commit 912437d47053f92086261e285462ac5b4d8d749a)
src/osd/PeeringState.cc