]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mon: alloc pgp_num adjustment up and down
authorSage Weil <sage@newdream.net>
Wed, 11 Apr 2012 21:46:19 +0000 (14:46 -0700)
committerSage Weil <sage@newdream.net>
Wed, 11 Apr 2012 22:40:34 +0000 (15:40 -0700)
Signed-off-by: Sage Weil <sage@newdream.net>
src/mon/OSDMonitor.cc

index 3f0db37ae0401b923e919f9efa7d001b0323db15..4e8051933e613052558bc22b3ac14c6ee4b8fcc5 100644 (file)
@@ -2071,9 +2071,7 @@ bool OSDMonitor::prepare_command(MMonCommand *m)
                return true;
              }
            } else if (m->cmd[4] == "pgp_num") {
-             if (n <= p->get_pgp_num()) {
-               ss << "specified pgp_num " << n << " <= current " << p->get_pgp_num();
-             } else if (n > p->get_pg_num()) {
+             if (n > p->get_pg_num()) {
                ss << "specified pgp_num " << n << " > pg_num " << p->get_pg_num();
              } else if (!mon->pgmon()->pg_map.creating_pgs.empty()) {
                ss << "still creating pgs, wait";