mirror of
https://github.com/ceph/ceph
synced 2025-01-11 05:29:51 +00:00
mds: make sure snaptable version > 0
version 0 snaptable confuses snapshot cache code Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
This commit is contained in:
parent
388922ac35
commit
002c732dc3
@ -1322,6 +1322,13 @@ void MDSRank::replay_done()
|
||||
mdlog->get_journaler()->set_writeable();
|
||||
mdlog->get_journaler()->trim_tail();
|
||||
|
||||
if (snapserver->get_version() == 0) {
|
||||
// upgraded from old filesystem. version 0 snaptable confuses current code.
|
||||
dout(1) << "upgrading snaptable version from 0 to 1" << dendl;
|
||||
snapserver->reset();
|
||||
sessionmap.save(new C_MDSInternalNoop);
|
||||
}
|
||||
|
||||
if (g_conf->mds_wipe_sessions) {
|
||||
dout(1) << "wiping out client sessions" << dendl;
|
||||
sessionmap.wipe();
|
||||
|
Loading…
Reference in New Issue
Block a user