]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
mon : change osdmap flags set and unset message
authorVikhyat Umrao <vumrao@redhat.com>
Thu, 7 Jul 2016 06:10:42 +0000 (11:40 +0530)
committerVikhyat Umrao <vumrao@redhat.com>
Thu, 7 Jul 2016 06:10:42 +0000 (11:40 +0530)
Fixes: http://tracker.ceph.com/issues/15983
Signed-off-by: Vikhyat Umrao <vumrao@redhat.com>
src/mon/OSDMonitor.cc

index 801ae887f80621f22b9da5b0f19e1f3a97f733e8..38a91fb7f549b937fd694ab26993259a3ffcce2e 100644 (file)
@@ -4872,7 +4872,7 @@ bool OSDMonitor::prepare_set_flag(MonOpRequestRef op, int flag)
   if (pending_inc.new_flags < 0)
     pending_inc.new_flags = osdmap.get_flags();
   pending_inc.new_flags |= flag;
-  ss << "set " << OSDMap::get_flag_string(flag);
+  ss << OSDMap::get_flag_string(flag) << " is set";
   wait_for_finished_proposal(op, new Monitor::C_Command(mon, op, 0, ss.str(),
                                                    get_last_committed() + 1));
   return true;
@@ -4885,7 +4885,7 @@ bool OSDMonitor::prepare_unset_flag(MonOpRequestRef op, int flag)
   if (pending_inc.new_flags < 0)
     pending_inc.new_flags = osdmap.get_flags();
   pending_inc.new_flags &= ~flag;
-  ss << "unset " << OSDMap::get_flag_string(flag);
+  ss << OSDMap::get_flag_string(flag) << " is unset";
   wait_for_finished_proposal(op, new Monitor::C_Command(mon, op, 0, ss.str(),
                                                    get_last_committed() + 1));
   return true;