]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
OSDMonitor::preprocess_get_osdmap: send the last map as well 5508/head
authorSamuel Just <sjust@redhat.com>
Wed, 29 Jul 2015 18:49:57 +0000 (11:49 -0700)
committerSamuel Just <sjust@redhat.com>
Wed, 29 Jul 2015 20:22:36 +0000 (13:22 -0700)
Fixes: #12410
Backport: hammer
Signed-off-by: Samuel Just <sjust@redhat.com>
src/mon/OSDMonitor.cc

index e79fe090a3fe104dde8d7ae3e534cc5a463face4..20f817b942dbc65d7509d7ab68b850c6f02689cf 100644 (file)
@@ -1355,13 +1355,13 @@ bool OSDMonitor::preprocess_get_osdmap(MMonGetOSDMap *m)
   epoch_t last = osdmap.get_epoch();
   int max = g_conf->osd_map_message_max;
   for (epoch_t e = MAX(first, m->get_full_first());
-       e < MIN(last, m->get_full_last()) && max > 0;
+       e <= MIN(last, m->get_full_last()) && max > 0;
        ++e, --max) {
     int r = get_version_full(e, reply->maps[e]);
     assert(r >= 0);
   }
   for (epoch_t e = MAX(first, m->get_inc_first());
-       e < MIN(last, m->get_inc_last()) && max > 0;
+       e <= MIN(last, m->get_inc_last()) && max > 0;
        ++e, --max) {
     int r = get_version(e, reply->incremental_maps[e]);
     assert(r >= 0);