From a8b4d20b700dc905d95f7de9564cb085e067e51b Mon Sep 17 00:00:00 2001 From: John Spray Date: Mon, 9 Apr 2018 13:22:29 +0100 Subject: [PATCH] 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 --- src/osd/osd_types.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.5