]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mon/MonClient: fix mon tell to older mons 31121/head
authorSage Weil <sage@redhat.com>
Thu, 24 Oct 2019 13:00:32 +0000 (08:00 -0500)
committerSage Weil <sage@redhat.com>
Thu, 24 Oct 2019 13:00:32 +0000 (08:00 -0500)
For older mons, we need to call into send_command so that we trigger the
compat code that futzes with our mon sessions.

Signed-off-by: Sage Weil <sage@redhat.com>
src/mon/MonClient.cc

index 67b47d6cd7313d391da6e9b66db5bad9618553ed..dbb4287a2a2ebda4f398daabc5e96b9f6b303031 100644 (file)
@@ -1196,7 +1196,10 @@ void MonClient::_resend_mon_commands()
   while (p != mon_commands.end()) {
     auto cmd = p->second;
     ++p;
-    if (!cmd->is_tell()) {
+    if (cmd->is_tell() && monmap.min_mon_release >= ceph_release_t::octopus) {
+      // starting with octopus, tell commands use their own connetion and need no
+      // special resend when we finish hunting.
+    } else {
       _send_command(cmd); // might remove cmd from mon_commands
     }
   }