From: Sage Weil Date: Mon, 26 Sep 2011 20:10:33 +0000 (-0700) Subject: osd: fix warning X-Git-Tag: v0.36~14 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=b582e7cd7dd3270f75a4b870fff61a649c366ea8;p=ceph.git osd: fix warning Signed-off-by: Sage Weil --- diff --git a/src/osd/OSD.cc b/src/osd/OSD.cc index 2a3525e62347..ce3329aeb7e0 100644 --- a/src/osd/OSD.cc +++ b/src/osd/OSD.cc @@ -3499,7 +3499,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) - to = since + 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; if (entity_name_t::TYPE_OSD == inst.name._type)