]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mon: enforce unique name in mdsmap
authorSage Weil <sage@inktank.com>
Fri, 18 Jan 2013 05:38:49 +0000 (21:38 -0800)
committerSage Weil <sage@inktank.com>
Fri, 18 Jan 2013 05:45:36 +0000 (21:45 -0800)
commit2e112333397750a1b683c41f58c3fae05321fc49
treef5f09393d92e49f93b735f57f7b3f178c35ff8ff
parente330b7ec54f89ca799ada376d5615e3c1dfc54f0
mon: enforce unique name in mdsmap

Add 'mds enforce unique name' option, defaulting to true.

If set, when an MDS boots, it will kick any previous mds with the same
name from the mdsmap.  This is possibly less confusing for users.  If
an mds daemon restarts, it will immediately replace its previous
instantiation.

Two misconfigured daemons running with the same name will fight over
the same role.

Fixes: #3857
Signed-off-by: Sage Weil <sage@inktank.com>
src/common/config_opts.h
src/mds/MDSMap.h
src/mon/MDSMonitor.cc