]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/mon/MgrMonitor.cc
update sources to v12.1.3
[ceph.git] / ceph / src / mon / MgrMonitor.cc
index fb760260f3ec695cb5e799c62cb8ad13c75c2714..fc4f08d8d70c51ec41bf23a1943f0e79d876410f 100644 (file)
@@ -938,3 +938,12 @@ int MgrMonitor::dump_metadata(const string& name, Formatter *f, ostream *err)
   return 0;
 }
 
+const std::vector<MonCommand> &MgrMonitor::get_command_descs() const
+{
+  if (command_descs.empty()) {
+    // must have just upgraded; fallback to static commands
+    return mgr_commands;
+  } else {
+    return command_descs;
+  }
+}