Project

General

Profile

mds_addfailed.patch

John Spray, 10/05/2016 01:23 PM

Download (2.1 KB)

View differences:

src/mon/DumplingMonCommands.h
266 266
	"remove nonactive mds", "mds", "rw", "cli,rest")
267 267
COMMAND("mds rmfailed name=who,type=CephInt,range=0", "remove failed mds", \
268 268
	"mds", "rw", "cli,rest")
269
COMMAND("mds addfailed name=who,type=CephInt,range=0", "remove failed mds", \
270
	"mds", "rw", "cli,rest")
269 271
COMMAND("mds cluster_down", "take MDS cluster down", "mds", "rw", "cli,rest")
270 272
COMMAND("mds cluster_up", "bring MDS cluster up", "mds", "rw", "cli,rest")
271 273
COMMAND("mds compat rm_compat " \
src/mon/MDSMonitor.cc
1656 1656
    stringstream ss;
1657 1657
    ss << "removed failed mds." << who;
1658 1658
    return 0;
1659
  } else if (prefix == "mds addfailed") {
1660
    mds_rank_t who;
1661
    if (!cmd_getval(g_ceph_context, cmdmap, "who", who)) {
1662
      ss << "error parsing 'who' value '"
1663
         << cmd_vartype_stringify(cmdmap["who"]) << "'";
1664
      return -EINVAL;
1665
    }
1666
    pending_mdsmap.failed.insert(who);
1667
    stringstream ss;
1668
    ss << "added failed mds." << who;
1669
    return 0;
1659 1670
  } else if (prefix == "mds cluster_down") {
1660 1671
    if (pending_mdsmap.test_flag(CEPH_MDSMAP_DOWN)) {
1661 1672
      ss << "mdsmap already marked DOWN";
src/mon/MonCommands.h
344 344
	"remove nonactive mds", "mds", "rw", "cli,rest")
345 345
COMMAND("mds rmfailed name=who,type=CephInt,range=0", "remove failed mds", \
346 346
	"mds", "rw", "cli,rest")
347
COMMAND("mds addfailed name=who,type=CephInt,range=0", "remove failed mds", \
348
	"mds", "rw", "cli,rest")
347 349
COMMAND("mds cluster_down", "take MDS cluster down", "mds", "rw", "cli,rest")
348 350
COMMAND("mds cluster_up", "bring MDS cluster up", "mds", "rw", "cli,rest")
349 351
COMMAND("mds compat rm_compat " \