]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mds: fix crash while stopping rank 5321/head 5324/head
authorJohn Spray <john.spray@redhat.com>
Wed, 22 Jul 2015 20:57:33 +0000 (21:57 +0100)
committerJohn Spray <john.spray@redhat.com>
Thu, 23 Jul 2015 09:48:18 +0000 (10:48 +0100)
commitc8bdf1b761cbff52d1b865ea90e3afbf56623491
tree5e75590f17fed90a2037ab8114f16e076ddfbe91
parent2746f59da45002ab12c73ab4b92b37d353827c6b
mds: fix crash while stopping rank

trim() was broken in:
8a91daae mds: fix mds crash when mds_max_log_events smaller

When doing a final trim in shutdown we need to trim everything,
not just all but the last segment.  The previous change's intent
was to prevent badness when mds_log_max_events was too small: accomplish
the same thing here by clamping the value to something sane.

Fixes: #12355
Signed-off-by: John Spray <john.spray@redhat.com>
src/mds/MDLog.cc