]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mon/OSDMonitor: kill get_most_recent_inst usage
authorSage Weil <sage@redhat.com>
Wed, 30 May 2018 17:43:09 +0000 (12:43 -0500)
committerSage Weil <sage@redhat.com>
Thu, 31 May 2018 13:10:24 +0000 (08:10 -0500)
Signed-off-by: Sage Weil <sage@redhat.com>
src/mon/OSDMonitor.cc

index 6eae84302dc165544f73a1f38e683beffd46a47d..1dc4bf8c4cc0879d907e575d2614d316877cd936 100644 (file)
@@ -2676,7 +2676,7 @@ bool OSDMonitor::preprocess_boot(MonOpRequestRef op)
 
   if (osdmap.exists(from) &&
       osdmap.get_info(from).up_from > m->version &&
-      osdmap.get_most_recent_inst(from) == m->get_orig_source_inst()) {
+      osdmap.get_most_recent_addrs(from) == m->get_orig_source_addrs()) {
     dout(7) << "prepare_boot msg from before last up_from, ignoring" << dendl;
     send_latest(op, m->sb.current_epoch+1);
     return true;
@@ -2893,7 +2893,7 @@ bool OSDMonitor::preprocess_full(MonOpRequestRef op)
     goto ignore;
   }
   if ((!osdmap.is_up(from) &&
-       osdmap.get_most_recent_inst(from) == m->get_orig_source_inst()) ||
+       osdmap.get_most_recent_addrs(from) == m->get_orig_source_addrs()) ||
       (osdmap.is_up(from) &&
        osdmap.get_inst(from) != m->get_orig_source_inst())) {
     dout(7) << __func__ << " ignoring full message from down "