]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mds: cleanup snaprealm past parents open check
authorYan, Zheng <zyan@redhat.com>
Thu, 3 Aug 2017 03:11:08 +0000 (11:11 +0800)
committerYan, Zheng <zyan@redhat.com>
Fri, 9 Feb 2018 10:41:27 +0000 (18:41 +0800)
commit471046f449e5e5b7e3e6faf4e5686b9a0ccdb3cb
treeeedfef81f9c2179f46daac32b0b9fbaf7292cf2b
parent34682e447522b94068425b761772d6a52634477c
mds: cleanup snaprealm past parents open check

For new format snaprealm, there is no need to open past parent,
SnapRealm::have_past_parents_open() always return true, In multimds
setup, mds may use snaprealm whithout opening past parents. So the
assertion in SnapRealm::check_cache() is wrong.

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