]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: fix warning more
authorGreg Farnum <gregory.farnum@dreamhost.com>
Mon, 26 Sep 2011 20:23:45 +0000 (13:23 -0700)
committerGreg Farnum <gregory.farnum@dreamhost.com>
Mon, 26 Sep 2011 20:23:45 +0000 (13:23 -0700)
Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
src/osd/OSD.cc

index ce3329aeb7e0e40fa32debf34224970981d18ee2..7ccb41478717268bc91bc6d33138a9f7e3eb31b1 100644 (file)
@@ -3498,7 +3498,7 @@ void OSD::send_incremental_map(epoch_t since, const entity_inst_t& inst, bool la
   
   while (since < osdmap->get_epoch()) {
     epoch_t to = osdmap->get_epoch();
-    if (to - since > g_conf->osd_map_message_max)
+    if (to - since > (epoch_t) g_conf->osd_map_message_max)
       to = since + (epoch_t)g_conf->osd_map_message_max;
     MOSDMap *m = build_incremental_map_msg(since, to);
     Messenger *msgr = client_messenger;