]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mon: do not remove FULL/NEARFULL flags from osdmap
authorKefu Chai <kchai@redhat.com>
Fri, 27 Sep 2019 07:41:47 +0000 (15:41 +0800)
committerKefu Chai <kchai@redhat.com>
Sat, 28 Sep 2019 08:09:58 +0000 (16:09 +0800)
b4ca5ae462c6f12ca48b787529938862646282cd has dropped them since v13.0.1,
so we don't need to do this in v15 anymore even if user upgrades an
existing cluster from v13.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/mon/OSDMonitor.cc

index 6e1b66b8c04c28ccf7632269f1c490d13f4d63a6..119bad4f71c5db9158789689732fe94b80b53e08 100644 (file)
@@ -1594,15 +1594,6 @@ void OSDMonitor::encode_pending(MonitorDBStore::TransactionRef t)
       }
     }
 
-    // remove any legacy osdmap nearfull/full flags
-    {
-      if (tmp.test_flag(CEPH_OSDMAP_FULL | CEPH_OSDMAP_NEARFULL)) {
-       dout(10) << __func__ << " clearing legacy osdmap nearfull/full flag"
-                << dendl;
-       remove_flag(CEPH_OSDMAP_NEARFULL);
-       remove_flag(CEPH_OSDMAP_FULL);
-      }
-    }
     // collect which pools are currently affected by
     // the near/backfill/full osd(s),
     // and set per-pool near/backfill/full flag instead