]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.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)
committerJonathan Brielmaier <jbrielmaier@suse.de>
Wed, 14 Nov 2018 15:56:29 +0000 (16:56 +0100)
commit16351c7166ea1756d298e5361b8b1601cff3ed98
tree6dc7dede9b3672ee1bbd1bf593ca61f0c433c55f
parent62ae081166026f3f97b1c1ea8b21d560e4a28507
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>
(cherry picked from commit 49c0f072f60deb5761e6b6a6518d88c59510ee9b)
Signed-off-by: Jonathan Brielmaier <jbrielmaier@suse.de>
src/mds/MDCache.cc
src/mds/MDLog.cc