]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
mon/PGMap: be helpful for "pg ls *" CLIs
authorxie xingguo <xie.xingguo@zte.com.cn>
Mon, 24 Jul 2017 14:56:39 +0000 (22:56 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Tue, 25 Jul 2017 02:24:44 +0000 (10:24 +0800)
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
src/mon/PGMap.cc

index 076c618ce84f20a39cfcfe17075cb1b4dc09507c..24da57c5333e87bdaf19231b54f29ef69ee28dff 100644 (file)
@@ -3782,7 +3782,8 @@ int process_pg_map_command(
       } else {
         int filter = pg_string_state(state_str);
         if (filter < 0) {
-          *ss << "'" << state_str << "' is not a valid pg state";
+          *ss << "'" << state_str << "' is not a valid pg state,"
+              << " available choices: " << pg_state_string(0xFFFFFFFF);
           return -EINVAL;
         }
         state |= filter;