summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSage Weil <sage@inktank.com>2013-07-10 11:32:34 -0700
committerSage Weil <sage@inktank.com>2013-07-12 15:44:21 -0700
commit757af91b2af0da6bbfeeb53551fa1ef4ef9118ea (patch)
tree32570142221d6dd528c308be973798bb77469abf
parent65af2538329472d2fd078bb961863c40cdabda12 (diff)
downloadceph-757af91b2af0da6bbfeeb53551fa1ef4ef9118ea.tar.gz
osd: fix warning
From 653e04a79430317e275dd77a46c2b17c788b860b Backport: cuttlefish, bobtail Signed-off-by: Sage Weil <sage@inktank.com> (cherry picked from commit bc291d3fc3fc1cac838565cbe0f25f71d855a6e3)
-rw-r--r--src/osd/OSD.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/osd/OSD.cc b/src/osd/OSD.cc
index c604953d027..825a2fea99f 100644
--- a/src/osd/OSD.cc
+++ b/src/osd/OSD.cc
@@ -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;