]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mds: use MDlog::trim_all() to trim log when deactivating mds
authorYan, Zheng <zyan@redhat.com>
Tue, 9 Oct 2018 10:30:55 +0000 (18:30 +0800)
committerYan, Zheng <zyan@redhat.com>
Mon, 29 Oct 2018 03:42:00 +0000 (11:42 +0800)
commit49c0f072f60deb5761e6b6a6518d88c59510ee9b
tree600b0b7da6808728d025c8a11eb2ba4e0ccb7c5e
parent6c1d4c606a9f597196235aa5cd3fa6d98a683290
mds: use MDlog::trim_all() to trim log when deactivating mds

The problem of MDLog::trim(0) is that it expires current segment.
New log events (scatter nudge) may get added to current segment
when MDLog::trim(0) expires current segement.

Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
src/mds/MDCache.cc
src/mds/MDLog.cc