]> git.apps.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>
Fri, 12 Jul 2013 22:44:21 +0000 (15:44 -0700)
From 653e04a79430317e275dd77a46c2b17c788b860b

Backport: cuttlefish, bobtail
Signed-off-by: Sage Weil <sage@inktank.com>
(cherry picked from commit bc291d3fc3fc1cac838565cbe0f25f71d855a6e3)

src/osd/OSD.cc

index c604953d027ca3e8bd7b94c5eafb9a4504b8a050..825a2fea99fcf0ebb4d5807e52685c33bd4b343b 100644 (file)
@@ -4742,7 +4742,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;