]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
osd/osd_types: add PG_STATE_WAIT
authorSage Weil <sage@redhat.com>
Fri, 28 Jun 2019 15:18:12 +0000 (10:18 -0500)
committerSage Weil <sage@redhat.com>
Thu, 26 Sep 2019 17:21:53 +0000 (12:21 -0500)
PG is waiting for previous intervals' readable intervals to expire.

Signed-off-by: Sage Weil <sage@redhat.com>
src/osd/osd_types.cc
src/osd/osd_types.h

index 1eccc0c53322ddfa6a646503c3f2abb1eba3684b..af432cec3d74a98f674f01cbd3c15859aa6f2de8 100644 (file)
@@ -1161,6 +1161,8 @@ std::string pg_state_string(uint64_t state)
     oss << "failed_repair+";
   if (state & PG_STATE_LAGGY)
     oss << "laggy+";
+  if (state & PG_STATE_WAIT)
+    oss << "wait+";
   string ret(oss.str());
   if (ret.length() > 0)
     ret.resize(ret.length() - 1);
@@ -1236,6 +1238,8 @@ std::optional<uint64_t> pg_string_state(const std::string& state)
     type = PG_STATE_FAILED_REPAIR;
   else if (state == "laggy")
     type = PG_STATE_LAGGY;
+  else if (state == "wait")
+    type = PG_STATE_WAIT;
   else if (state == "unknown")
     type = 0;
   else
index 7e4c09b1d2025c1c48778064f67a7c973afce191..3f45d84bc008dfedf2dffb565b8eb27d54d0bf52 100644 (file)
@@ -993,6 +993,7 @@ WRITE_CLASS_ENCODER_FEATURES(objectstore_perf_stat_t)
 #define PG_STATE_FORCED_BACKFILL    (1ULL << 31) // force backfill of this pg before any other
 #define PG_STATE_FAILED_REPAIR      (1ULL << 32) // A repair failed to fix all errors
 #define PG_STATE_LAGGY              (1ULL << 33) // PG is laggy/unreabable due to slow/delayed pings
+#define PG_STATE_WAIT               (1ULL << 34) // PG is waiting for prior intervals' readable period to expire
 
 std::string pg_state_string(uint64_t state);
 std::string pg_vector_string(const std::vector<int32_t> &a);