]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd/PrimaryLogPG.cc: limit trimming at can_rollback_to
authorNeha Ojha <nojha@redhat.com>
Thu, 16 Aug 2018 18:48:19 +0000 (11:48 -0700)
committerNeha Ojha <nojha@redhat.com>
Fri, 18 Jan 2019 19:06:13 +0000 (14:06 -0500)
commitdc8cd7e7f0bf953086f0c801aee37a813e9882c6
tree077877f442a955d21ea16085ec467575ccb6e722
parent07fccd935fa410c5ed83b35a32acc3a087751089
osd/PrimaryLogPG.cc: limit trimming at can_rollback_to

This change is motivated by the failures seen in the multimds suite,
where we hit assert(s <= can_rollback_to), while trimming the log in ec
pools.

This is due to the fact that we had removed limits on the trim_to value to
address https://tracker.ceph.com/issues/23979.

But, seems that this could be dangerous for ec pools. So, keep the
can_rollback_to limit, while calculating the trim_to value.

Fixes: http://tracker.ceph.com/issues/21416
Signed-off-by: Neha Ojha <nojha@redhat.com>
(cherry picked from commit 4b5c6b88d444e2173e716fe4890717873c8dc8e5)
src/osd/PrimaryLogPG.cc