"scrub the monitor stores", \
"mon", "rw", "cli,rest", \
FLAG(NONE))
+COMMAND_WITH_FLAG("mon sync force " \
+ "name=validate1,type=CephChoices,strings=--yes-i-really-mean-it,req=false " \
+ "name=validate2,type=CephChoices,strings=--i-know-what-i-am-doing,req=false", \
+ "force sync of and clear monitor store", \
+ "mon", "rw", "cli,rest", \
+ FLAG(NOFORWARD))
/*
/* Let the Monitor class handle the following commands:
* 'mon compact'
* 'mon scrub'
+ * 'mon sync force'
*/
prefix != "mon compact" &&
- prefix != "mon scrub") {
+ prefix != "mon scrub" &&
+ prefix != "mon sync force") {
monmon()->dispatch(m);
return;
}
rdata.append(ds);
rs = "";
r = 0;
- } else if (prefix == "sync force") {
+ } else if (prefix == "sync force" ||
+ prefix == "mon sync force") {
string validate1, validate2;
cmd_getval(g_ceph_context, cmdmap, "validate1", validate1);
cmd_getval(g_ceph_context, cmdmap, "validate2", validate2);