]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: Rename MBackfillReserve::TOOFULL to what it does in particular (revoke)
authorDavid Zafman <dzafman@redhat.com>
Thu, 22 Aug 2019 17:30:01 +0000 (10:30 -0700)
committerDavid Zafman <dzafman@redhat.com>
Fri, 23 Aug 2019 18:31:45 +0000 (11:31 -0700)
Signed-off-by: David Zafman <dzafman@redhat.com>
src/messages/MBackfillReserve.h
src/osd/PeeringState.cc

index d3e469c8ab2ed032c637045d4af6321f6b16f17e..6926b21f992a0a3e4eb7694fa9f23014475f0275 100644 (file)
@@ -31,7 +31,7 @@ public:
     GRANT = 1,     // replica->primary: ok, i reserved it
     REJECT = 2,    // replica->primary: sorry, try again later (*)
     RELEASE = 3,   // primary->replcia: release the slot i reserved before
-    TOOFULL = 4,   // replica->primary: too full, stop backfilling
+    REVOKE_TOOFULL = 4,   // replica->primary: too full, stop backfilling
     REVOKE = 5,    // replica->primary: i'm taking back the slot i gave you
     // (*) NOTE: prior to luminous, REJECT was overloaded to also mean release
   };
@@ -77,7 +77,7 @@ public:
        query_epoch,
        query_epoch,
        RemoteReservationCanceled());
-    case TOOFULL:
+    case REVOKE_TOOFULL:
       return new PGPeeringEvent(
        query_epoch,
        query_epoch,
@@ -124,8 +124,8 @@ public:
     case RELEASE:
       out << "RELEASE";
       break;
-    case TOOFULL:
-      out << "TOOFULL";
+    case REVOKE_TOOFULL:
+      out << "REVOKE_TOOFULL";
       break;
     case REVOKE:
       out << "REVOKE";
@@ -158,7 +158,7 @@ public:
       header.compat_version = 3;
       encode(pgid.pgid, payload);
       encode(query_epoch, payload);
-      encode((type == RELEASE || type == TOOFULL || type == REVOKE) ?
+      encode((type == RELEASE || type == REVOKE_TOOFULL || type == REVOKE) ?
               REJECT : type, payload);
       encode(priority, payload);
       encode(pgid.shard, payload);
index e5c28694955a562dc54295516782c2205e898236..99c664f7fe780ffc32dc41b5a24d85e6c95085b1 100644 (file)
@@ -4884,7 +4884,7 @@ PeeringState::RepRecovering::react(const BackfillTooFull &)
   pl->send_cluster_message(
     ps->primary.osd,
     new MBackfillReserve(
-      MBackfillReserve::TOOFULL,
+      MBackfillReserve::REVOKE_TOOFULL,
       spg_t(ps->info.pgid.pgid, ps->primary.shard),
       ps->get_osdmap_epoch()),
     ps->get_osdmap_epoch());