]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mds: don't trim log when MDS is readonly
authorYan, Zheng <zyan@redhat.com>
Fri, 28 Nov 2014 08:12:06 +0000 (16:12 +0800)
committerYan, Zheng <zyan@redhat.com>
Tue, 2 Dec 2014 02:47:23 +0000 (10:47 +0800)
commit2d4a746fa9146fea78274d6fdb2f6ef448da608b
tree1abbf7d1d0ebd109c574ae9b012282d89f987141
parent4f6474f2b7b8be00db8d3e457e6149bcec56fbbc
mds: don't trim log when MDS is readonly

When MDS is readonly, keep metadata objects (not include the journal) of
cephfs unchanged. This allows us to submit new entries to the log while
MDS is readonly. (Log entries submitted after MDS becomes readonly can
be safely dropped)

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