]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mon/OSDMonitor: fix warnings
authorSage Weil <sage@redhat.com>
Thu, 5 Apr 2018 18:07:53 +0000 (13:07 -0500)
committerSage Weil <sage@redhat.com>
Thu, 5 Apr 2018 18:07:53 +0000 (13:07 -0500)
Signed-off-by: Sage Weil <sage@redhat.com>
src/mon/OSDMonitor.cc

index 2df8b77b4512de79442296fbdee14c45c0aa70f4..984fcc04011aa895b62dc4498522c0b2beff2848 100644 (file)
@@ -11535,7 +11535,7 @@ int OSDMonitor::_prepare_remove_pool(
   {
     auto it = pending_inc.new_pg_upmap.begin();
     while (it != pending_inc.new_pg_upmap.end()) {
-      if (it->first.pool() == (uint64_t)pool) {
+      if (it->first.pool() == pool) {
         dout(10) << __func__ << " " << pool
                  << " removing pending pg_upmap "
                  << it->first << dendl;
@@ -11558,7 +11558,7 @@ int OSDMonitor::_prepare_remove_pool(
   {
     auto it = pending_inc.new_pg_upmap_items.begin();
     while (it != pending_inc.new_pg_upmap_items.end()) {
-      if (it->first.pool() == (uint64_t)pool) {
+      if (it->first.pool() == pool) {
         dout(10) << __func__ << " " << pool
                  << " removing pending pg_upmap_items "
                  << it->first << dendl;