]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd/PrimaryLogPG.cc: limit trimming at can_rollback_to 23403/head
authorNeha Ojha <nojha@redhat.com>
Thu, 16 Aug 2018 18:48:19 +0000 (11:48 -0700)
committerNeha Ojha <nojha@redhat.com>
Thu, 30 Aug 2018 21:40:09 +0000 (21:40 +0000)
commitee041eb937728b0fec4aa827933f38867cddf121
tree10de7ba8c07e929b3e43541aeeef829b64dc8d9b
parent7809715f3e278a2c7842fdf15279ee9fe6e54b13
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