From 4032501eb60dd9de290113c04fa7daad272b96f9 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Thu, 31 Oct 2013 09:49:09 -0700 Subject: [PATCH] mon/OSDMonitor: refix warning mon/OSDMonitor.cc: In member function 'int OSDMonitor::_prepare_rename_pool(int64_t, std::string)': mon/OSDMonitor.cc:4370:55: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] Two fixes for this crossed paths in 0c186096bb9534165394046fd8dd914e1be44094 and 2181b4c94696432814fea828a7efa54586b324a4 Signed-off-by: Sage Weil --- src/mon/OSDMonitor.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mon/OSDMonitor.cc b/src/mon/OSDMonitor.cc index c46fa5215d4f6..6c4eff5fffbad 100644 --- a/src/mon/OSDMonitor.cc +++ b/src/mon/OSDMonitor.cc @@ -4367,7 +4367,7 @@ int OSDMonitor::_prepare_rename_pool(int64_t pool, string newname) for (map::iterator p = pending_inc.new_pool_names.begin(); p != pending_inc.new_pool_names.end(); ++p) { - if (p->second == newname && (uint64_t)p->first != pool) { + if (p->second == newname && p->first != pool) { return -EEXIST; } } -- 2.39.5