]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mon: OSDMonitor: fix comparison between signed and unsigned integer warning 787/head 788/head
authorJoao Eduardo Luis <joao.luis@inktank.com>
Tue, 29 Oct 2013 20:36:05 +0000 (20:36 +0000)
committerJoao Eduardo Luis <joao.luis@inktank.com>
Tue, 29 Oct 2013 20:36:05 +0000 (20:36 +0000)
Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
src/mon/OSDMonitor.cc

index 7b4adc4624f142892c369cae878a8420459af3d8..27a336fd3b76d5627eb0bf6fd7fe5f6ba6d72eb9 100644 (file)
@@ -4365,7 +4365,7 @@ int OSDMonitor::_prepare_rename_pool(uint64_t pool, string newname)
   for (map<int64_t,string>::iterator p = pending_inc.new_pool_names.begin();
        p != pending_inc.new_pool_names.end();
        ++p) {
-    if (p->second == newname && p->first != pool) {
+    if (p->second == newname && (uint64_t)p->first != pool) {
       return -EEXIST;
     }
   }