]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mon/PGMap: sort pg states by the states in "pg ls" spec
authorKefu Chai <kchai@redhat.com>
Mon, 11 May 2015 11:29:13 +0000 (19:29 +0800)
committerKefu Chai <kchai@redhat.com>
Mon, 11 May 2015 11:40:03 +0000 (19:40 +0800)
Signed-off-by: Kefu Chai <kchai@redhat.com>
src/osd/osd_types.cc

index 94fa23dfda78ad9dbe9424fbf10b2eb60fdda885..7679dc4b19451a00b5c740d2a602c6b9eedeeb44 100644 (file)
@@ -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")