]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osdmaptool: Match default max value of 10
authorDavid Zafman <dzafman@redhat.com>
Thu, 7 Nov 2019 04:31:21 +0000 (20:31 -0800)
committerDavid Zafman <dzafman@redhat.com>
Tue, 3 Dec 2019 01:36:02 +0000 (17:36 -0800)
Signed-off-by: David Zafman <dzafman@redhat.com>
(cherry picked from commit 91bab14ea0e2ec7c94eb758cd76f9a620688725f)

src/test/cli/osdmaptool/help.t
src/tools/osdmaptool.cc

index 8fd313a765add05da214ba4bc2f24ae58956bdc8..643b624a7741f549692b82396f16d77aa389037c 100644 (file)
@@ -18,7 +18,7 @@
                              commands to <file> [default: - for stdout]
      --upmap <file>          calculate pg upmap entries to balance pg layout
                              writing commands to <file> [default: - for stdout]
-     --upmap-max <max-count> set max upmap entries to calculate [default: 100]
+     --upmap-max <max-count> set max upmap entries to calculate [default: 10]
      --upmap-deviation <max-deviation>
                              max deviation from target [default: .01]
      --upmap-pool <poolname> restrict upmap balancing to 1 or more pools
index 2eb0d12c62985fef9d8b621dd9e5ef06b2067f88..8a65c32797a7312a8df71c2e6aafe8075199cb91 100644 (file)
@@ -45,7 +45,7 @@ void usage()
   cout << "                           commands to <file> [default: - for stdout]" << std::endl;
   cout << "   --upmap <file>          calculate pg upmap entries to balance pg layout" << std::endl;
   cout << "                           writing commands to <file> [default: - for stdout]" << std::endl;
-  cout << "   --upmap-max <max-count> set max upmap entries to calculate [default: 100]" << std::endl;
+  cout << "   --upmap-max <max-count> set max upmap entries to calculate [default: 10]" << std::endl;
   cout << "   --upmap-deviation <max-deviation>" << std::endl;
   cout << "                           max deviation from target [default: .01]" << std::endl;
   cout << "   --upmap-pool <poolname> restrict upmap balancing to 1 or more pools" << std::endl;
@@ -133,7 +133,7 @@ int main(int argc, const char **argv)
   bool upmap_save = false;
   bool health = false;
   std::string upmap_file = "-";
-  int upmap_max = 100;
+  int upmap_max = 10;
   float upmap_deviation = .01;
   std::set<std::string> upmap_pools;
   int64_t pg_num = -1;