]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mon/MgrMonitor: mark mgr commands with FLAG_MGR
authorSage Weil <sage@redhat.com>
Tue, 18 Jul 2017 20:05:59 +0000 (16:05 -0400)
committerJohn Spray <john.spray@redhat.com>
Wed, 19 Jul 2017 12:58:40 +0000 (08:58 -0400)
Signed-off-by: Sage Weil <sage@redhat.com>
src/mon/MgrMonitor.cc

index 594cd4a8d4c79f3a8612033736047b84a16ea02a..bf70f7aee7290b3d6834589c5d57f0fd460e77c5 100644 (file)
@@ -150,6 +150,9 @@ void MgrMonitor::encode_pending(MonitorDBStore::TransactionRef t)
   if (pending_command_descs.size()) {
     dout(4) << __func__ << " encoding " << pending_command_descs.size()
             << " command_descs" << dendl;
+    for (auto& p : pending_command_descs) {
+      p.set_flag(MonCommand::FLAG_MGR);
+    }
     bufferlist bl;
     ::encode(pending_command_descs, bl);
     t->put(command_descs_prefix, "", bl);