]> 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>
Thu, 28 Nov 2019 00:29:29 +0000 (16:29 -0800)
Signed-off-by: David Zafman <dzafman@redhat.com>
src/test/cli/osdmaptool/help.t
src/tools/osdmaptool.cc

index e697ba3b71ca437d6502e20e490fadcaabb41f5f..e785ebb11ea9f96c8a247bf21edf47efbd95d280 100644 (file)
@@ -23,7 +23,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 b3455f85fa0d03d4615bc7055f9748ded168d4e4..c918a2d44e329593f77579da1086df77489435c6 100644 (file)
@@ -50,7 +50,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;
@@ -141,7 +141,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;