]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mon/OSDMonitor: fix oldest_map in send_incremental
authorSage Weil <sage@redhat.com>
Wed, 11 Nov 2015 03:19:48 +0000 (22:19 -0500)
committerSage Weil <sage@redhat.com>
Mon, 23 Nov 2015 13:38:51 +0000 (08:38 -0500)
This should be the oldest map on the sender (like every other
place that generates an MOSDMap message).

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

index edc9648056db599236a3aced59316a20cba17f04..93c17004afdcf8420d4990c208ff5066de3ab6f5 100644 (file)
@@ -2445,7 +2445,7 @@ void OSDMonitor::send_incremental(epoch_t first,
             << first << " " << bl.length() << " bytes" << dendl;
 
     MOSDMap *m = new MOSDMap(osdmap.get_fsid());
-    m->oldest_map = first;
+    m->oldest_map = get_first_committed();
     m->newest_map = osdmap.get_epoch();
     m->maps[first] = bl;