From 1e9b62c1b609fa5db3e57a257f24e2b7908cf974 Mon Sep 17 00:00:00 2001 From: John Spray Date: Wed, 12 Jul 2017 19:54:59 -0400 Subject: [PATCH] tools: avoid max() calls on rbd config options These were awkward for typing of the '1' literal vs. the int64_t settings. The whole max() thing is also unnecessary now, if we set proper bounds on the option definitions. Signed-off-by: John Spray --- src/common/options.cc | 3 +++ src/common/options.h | 11 +++++++++-- src/tools/rbd/action/Export.cc | 2 +- src/tools/rbd/action/Import.cc | 4 ++-- src/tools/rbd_mirror/InstanceReplayer.cc | 3 +-- src/tools/rbd_mirror/Instances.cc | 2 +- src/tools/rbd_mirror/LeaderWatcher.cc | 3 +-- 7 files changed, 18 insertions(+), 10 deletions(-) diff --git a/src/common/options.cc b/src/common/options.cc index a930f362cd3ef..e5540b6717a39 100644 --- a/src/common/options.cc +++ b/src/common/options.cc @@ -4345,6 +4345,7 @@ const std::vector