From: Kefu Chai Date: Mon, 11 May 2015 11:29:13 +0000 (+0800) Subject: mon/PGMap: sort pg states by the states in "pg ls" spec X-Git-Tag: v9.0.2~73^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=990dfb6cd45438bc8293ac37882daa413860a2f8;p=ceph.git mon/PGMap: sort pg states by the states in "pg ls" spec Signed-off-by: Kefu Chai --- diff --git a/src/osd/osd_types.cc b/src/osd/osd_types.cc index 94fa23dfda78..7679dc4b1945 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")