From: Sage Weil Date: Wed, 10 Jul 2013 18:32:34 +0000 (-0700) Subject: osd: fix warning X-Git-Tag: v0.67-rc1~118 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=bc291d3fc3fc1cac838565cbe0f25f71d855a6e3;p=ceph.git osd: fix warning From 653e04a79430317e275dd77a46c2b17c788b860b Backport: cuttlefish, bobtail Signed-off-by: Sage Weil --- diff --git a/src/osd/OSD.cc b/src/osd/OSD.cc index c6f92ecbf096..f2cb90756642 100644 --- a/src/osd/OSD.cc +++ b/src/osd/OSD.cc @@ -5409,7 +5409,7 @@ void OSD::send_incremental_map(epoch_t since, Connection *con) return; } - if (to > since && to - since > g_conf->osd_map_share_max_epochs) { + if (to > since && (int64_t)(to - since) > g_conf->osd_map_share_max_epochs) { dout(10) << " " << (to - since) << " > max " << g_conf->osd_map_share_max_epochs << ", only sending most recent" << dendl; since = to - g_conf->osd_map_share_max_epochs;