]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
Revert "mon/OSDMonitor: report pg[pgp]_num_target instead of pg[pgp]_num" 28567/head
authorxie xingguo <xie.xingguo@zte.com.cn>
Sat, 15 Jun 2019 00:34:09 +0000 (08:34 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Sat, 15 Jun 2019 00:46:41 +0000 (08:46 +0800)
This reverts commit a160dc416a7c19eccce66f36719468680cd151f4.
Since it does not mean to fix anything, I'd like to leave it
the way it is.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
src/mon/OSDMonitor.cc

index c66883867bd280f99447f4c44496f276bb79f530..34c4c5ce8f3ef845a092fee3522eb01904d64dbc 100644 (file)
@@ -5437,10 +5437,10 @@ bool OSDMonitor::preprocess_command(MonOpRequestRef op)
         ceph_assert(i != ALL_CHOICES.end());
        switch(*it) {
          case PG_NUM:
-           f->dump_int("pg_num", p->get_pg_num_target());
+           f->dump_int("pg_num", p->get_pg_num());
            break;
          case PGP_NUM:
-           f->dump_int("pgp_num", p->get_pgp_num_target());
+           f->dump_int("pgp_num", p->get_pgp_num());
            break;
          case SIZE:
            f->dump_int("size", p->get_size());
@@ -5595,10 +5595,10 @@ bool OSDMonitor::preprocess_command(MonOpRequestRef op)
        choices_map_t::const_iterator i;
        switch(*it) {
          case PG_NUM:
-           ss << "pg_num: " << p->get_pg_num_target() << "\n";
+           ss << "pg_num: " << p->get_pg_num() << "\n";
            break;
          case PGP_NUM:
-           ss << "pgp_num: " << p->get_pgp_num_target() << "\n";
+           ss << "pgp_num: " << p->get_pgp_num() << "\n";
            break;
          case SIZE:
            ss << "size: " << p->get_size() << "\n";