From e1014d24ad12087d504426ed60b5f762736ebdb3 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 (cherry picked from commit 91bab14ea0e2ec7c94eb758cd76f9a620688725f) --- 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 8fd313a765add..643b624a7741f 100644 --- a/src/test/cli/osdmaptool/help.t +++ b/src/test/cli/osdmaptool/help.t @@ -18,7 +18,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 b02032f78edc5..ca3b6d031e978 100644 --- a/src/tools/osdmaptool.cc +++ b/src/tools/osdmaptool.cc @@ -46,7 +46,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; @@ -127,7 +127,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