]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: fix warning more
authorSage Weil <sage@newdream.net>
Mon, 26 Sep 2011 21:08:19 +0000 (14:08 -0700)
committerSage Weil <sage@newdream.net>
Mon, 26 Sep 2011 21:08:19 +0000 (14:08 -0700)
Argh

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
Signed-off-by: Sage Weil <sage@newdream.net>
src/osd/OSD.cc

index ce3329aeb7e0e40fa32debf34224970981d18ee2..16b3bf8fcbf8cc25d6085d666dbd7e16753fdd59 100644 (file)
@@ -3498,8 +3498,8 @@ 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)
-      to = since + (epoch_t)g_conf->osd_map_message_max;
+    if (to - since > (epoch_t)g_conf->osd_map_message_max)
+      to = since + g_conf->osd_map_message_max;
     MOSDMap *m = build_incremental_map_msg(since, to);
     Messenger *msgr = client_messenger;
     if (entity_name_t::TYPE_OSD == inst.name._type)