From: John Spray Date: Mon, 9 Apr 2018 12:22:29 +0000 (+0100) Subject: osd: make PG "deep" state name consistent X-Git-Tag: v13.1.0~317^2~1 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=a8b4d20b700dc905d95f7de9564cb085e067e51b;p=ceph.git osd: make PG "deep" state name consistent 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 --- diff --git a/src/osd/osd_types.cc b/src/osd/osd_types.cc index ca5ddc0bea3cc..adde060afbc7b 100644 --- a/src/osd/osd_types.cc +++ b/src/osd/osd_types.cc @@ -895,7 +895,7 @@ boost::optional 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;