From 7e11ef77dccb4c2ae56e3a531016e6ad6e515ea5 Mon Sep 17 00:00:00 2001 From: Wei Feng Date: Tue, 3 Nov 2015 06:43:54 -0500 Subject: [PATCH] mds:the ceph-mds command option "--hot-standby" is useless. Signed-off-by: Wei Feng --- src/ceph_mds.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ceph_mds.cc b/src/ceph_mds.cc index 91ff002e1edd..f30fbe6c8db3 100644 --- a/src/ceph_mds.cc +++ b/src/ceph_mds.cc @@ -120,7 +120,7 @@ int main(int argc, const char **argv) } else if (ceph_argparse_witharg(args, i, &val, "--hot-standby", (char*)NULL)) { int r = parse_rank("hot-standby", val); - if (shadow) { + if (shadow != MDSMap::STATE_NULL) { dout(0) << "Error: can only select one standby state" << dendl; return -1; } -- 2.47.3