]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mon/OSDMonitor: note osd map epoch in one other place 3662/head 3722/head
authorSage Weil <sage@redhat.com>
Thu, 12 Feb 2015 21:51:17 +0000 (13:51 -0800)
committerSage Weil <sage@redhat.com>
Fri, 13 Feb 2015 13:48:25 +0000 (05:48 -0800)
Also add a note about why we don't do it in another.

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

index 16840b8048f3a5d9f3bd4e71637bb4316729b064..e169a8757f6bd8234dbff4c553ec1dd4a4fcd877 100644 (file)
@@ -1010,6 +1010,8 @@ void OSDMonitor::share_map_with_random_osd()
   // whatev, they'll request more if they need it
   MOSDMap *m = build_incremental(osdmap.get_epoch() - 1, osdmap.get_epoch());
   s->con->send_message(m);
+  // NOTE: do *not* record osd has up to this epoch (as we do
+  // elsewhere) as they may still need to request older values.
 }
 
 version_t OSDMonitor::get_trim_to()
@@ -2210,6 +2212,10 @@ void OSDMonitor::send_incremental(epoch_t first, MonSession *session,
     MOSDMap *m = build_incremental(first, last);
     session->con->send_message(m);
     first = last + 1;
+
+    if (session->inst.name.is_osd())
+      note_osd_has_epoch(session->inst.name.num(), last);
+
     if (onetime)
       break;
   }