]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: fix warning
authorSage Weil <sage@inktank.com>
Wed, 10 Jul 2013 18:32:34 +0000 (11:32 -0700)
committerSage Weil <sage@inktank.com>
Wed, 10 Jul 2013 18:32:34 +0000 (11:32 -0700)
From 653e04a79430317e275dd77a46c2b17c788b860b

Backport: cuttlefish, bobtail
Signed-off-by: Sage Weil <sage@inktank.com>
src/osd/OSD.cc

index c6f92ecbf096a7471382a1d864b1e28bb098d044..f2cb90756642bb1adde94fe0465d233f2ede06be 100644 (file)
@@ -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;