]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
src: no 'dne' acronym in user cmd output 21094/head
authorGu Zhongyan <guzhongyan@360.cn>
Wed, 28 Mar 2018 09:43:16 +0000 (17:43 +0800)
committerGu Zhongyan <guzhongyan@360.cn>
Wed, 27 Jun 2018 03:03:16 +0000 (11:03 +0800)
So the cmd output would be more friendly to
non native speaker users.

Signed-off-by: Gu Zhongyan <guzhongyan@360.cn>
src/mgr/DaemonServer.cc
src/mon/MDSMonitor.cc

index 405a22cdbb8a515844affa7fc095acf74e2c52be..c8cd57e45d80f87d011810b5cbaf085b4993b7a6 100644 (file)
@@ -902,7 +902,7 @@ bool DaemonServer::handle_command(MCommand *m)
        pg_exists = osdmap.pg_exists(pgid);
       });
     if (!pg_exists) {
-      ss << "pg " << pgid << " dne";
+      ss << "pg " << pgid << " does not exist";
       cmdctx->reply(-ENOENT, ss);
       return true;
     }
index 6c28bbd5c583091239a4334bceda420830bbb05b..66cf9d53abb30b42f036200154b65edfa11b08cb 100644 (file)
@@ -1311,7 +1311,7 @@ int MDSMonitor::filesystem_command(
       return -EINVAL;
     }
     if (!fsmap.gid_exists(gid)) {
-      ss << "mds gid " << gid << " dne";
+      ss << "mds gid " << gid << " does not exist";
       r = 0;
     } else {
       const auto &info = fsmap.get_info_gid(gid);