From 990dfb6cd45438bc8293ac37882daa413860a2f8 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Mon, 11 May 2015 19:29:13 +0800 Subject: [PATCH] mon/PGMap: sort pg states by the states in "pg ls" spec Signed-off-by: Kefu Chai --- src/osd/osd_types.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/osd/osd_types.cc b/src/osd/osd_types.cc index 94fa23dfda7..7679dc4b194 100644 --- a/src/osd/osd_types.cc +++ b/src/osd/osd_types.cc @@ -801,10 +801,10 @@ int pg_string_state(std::string state) type = PG_STATE_BACKFILL_WAIT; else if (state == "incomplete") type = PG_STATE_INCOMPLETE; - else if (state == "remapped") - type = PG_STATE_REMAPPED; else if (state == "stale") type = PG_STATE_STALE; + else if (state == "remapped") + type = PG_STATE_REMAPPED; else if (state == "deep_scrub") type = PG_STATE_DEEP_SCRUB; else if (state == "backfill") -- 2.47.3