]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: make PG "deep" state name consistent
authorJohn Spray <john.spray@redhat.com>
Mon, 9 Apr 2018 12:22:29 +0000 (13:22 +0100)
committerJohn Spray <john.spray@redhat.com>
Mon, 9 Apr 2018 12:23:55 +0000 (13:23 +0100)
Previously the state-to-string path called
deep scrubbing "deep", but the string-to-state
path called it "deep_scrub".  Confusing!  Also
meant that the "pg ls" help output was wrong
because it uses the state-to-string path.

Signed-off-by: John Spray <john.spray@redhat.com>
src/osd/osd_types.cc

index ca5ddc0bea3ccd339efe75b97cfb9762c4a62b9e..adde060afbc7bd66054bed81d2d8f28b608c0498 100644 (file)
@@ -895,7 +895,7 @@ boost::optional<uint64_t> pg_string_state(const std::string& state)
     type = PG_STATE_STALE;
   else if (state == "remapped")
     type = PG_STATE_REMAPPED;
-  else if (state == "deep_scrub")
+  else if (state == "deep")
     type = PG_STATE_DEEP_SCRUB;
   else if (state == "backfilling")
     type = PG_STATE_BACKFILLING;