]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mds: warn on unconnected snap realms
authorYan, Zheng <zheng.z.yan@intel.com>
Wed, 15 May 2013 03:24:36 +0000 (11:24 +0800)
committerYan, Zheng <zheng.z.yan@intel.com>
Tue, 28 May 2013 05:57:22 +0000 (13:57 +0800)
commit26effc0e583b0a3dade6ec81ef26dec1c94ac8b2
treeb693f147bf6b37e9528fb80c75472b1c837cd57e
parentf3a9f4746d1498f62e241b5358c19547fd4749bc
mds: warn on unconnected snap realms

When there are more than one active MDS, restarting MDS triggers
assertion "reconnected_snaprealms.empty()" quite often. If there
is no snapshot in the FS, the items left in reconnected_snaprealms
should be other MDS' mdsdir. I think it's harmless.

If there are snapshots in the FS, the assertion probably can catch
real bugs. But at present, snapshot feature is broken, fixing it is
non-trivial. So replace the assertion with a warning.

Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
src/mds/MDCache.cc