From 91bab14ea0e2ec7c94eb758cd76f9a620688725f Mon Sep 17 00:00:00 2001 From: David Zafman Date: Wed, 6 Nov 2019 20:31:21 -0800 Subject: [PATCH] osdmaptool: Match default max value of 10 Signed-off-by: David Zafman --- src/test/cli/osdmaptool/help.t | 2 +- src/tools/osdmaptool.cc | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/test/cli/osdmaptool/help.t b/src/test/cli/osdmaptool/help.t index e697ba3b71ca4..e785ebb11ea9f 100644 --- a/src/test/cli/osdmaptool/help.t +++ b/src/test/cli/osdmaptool/help.t @@ -23,7 +23,7 @@ commands to [default: - for stdout] --upmap calculate pg upmap entries to balance pg layout writing commands to [default: - for stdout] - --upmap-max set max upmap entries to calculate [default: 100] + --upmap-max set max upmap entries to calculate [default: 10] --upmap-deviation max deviation from target [default: .01] --upmap-pool restrict upmap balancing to 1 or more pools diff --git a/src/tools/osdmaptool.cc b/src/tools/osdmaptool.cc index b3455f85fa0d0..c918a2d44e329 100644 --- a/src/tools/osdmaptool.cc +++ b/src/tools/osdmaptool.cc @@ -50,7 +50,7 @@ void usage() cout << " commands to [default: - for stdout]" << std::endl; cout << " --upmap calculate pg upmap entries to balance pg layout" << std::endl; cout << " writing commands to [default: - for stdout]" << std::endl; - cout << " --upmap-max set max upmap entries to calculate [default: 100]" << std::endl; + cout << " --upmap-max set max upmap entries to calculate [default: 10]" << std::endl; cout << " --upmap-deviation " << std::endl; cout << " max deviation from target [default: .01]" << std::endl; cout << " --upmap-pool 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 upmap_pools; int64_t pg_num = -1; -- 2.39.5