]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mds: properly trim log segments after scrub repairs something 21664/head
authorYan, Zheng <zyan@redhat.com>
Thu, 26 Apr 2018 07:50:39 +0000 (15:50 +0800)
committerYan, Zheng <zyan@redhat.com>
Thu, 26 Apr 2018 08:14:30 +0000 (16:14 +0800)
commit5be40f35c3365265b76a12a3bd0e17c3f8761bb9
treec077a87eccdbaaa6f1c55c45cf5afa15bbb084c6
parent189192b2f60429e95ff798314e71c4252cc6bf7f
mds: properly trim log segments after scrub repairs something

Before calling MDLog::trim_all(), we need to make sure mdlog get flushed
Otherwise, there can be zero expiring log segments. This can cause
MDSGatherBuilder to malfunction. (MDSGatherBuilder::activate() does not
execute empty MDSGatherBuilder's finish context)

Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
http://tracker.ceph.com/issues/23880
src/mds/MDCache.cc