]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
tools: avoid max() calls on rbd config options
authorJohn Spray <john.spray@redhat.com>
Wed, 12 Jul 2017 23:54:59 +0000 (19:54 -0400)
committerJohn Spray <john.spray@redhat.com>
Fri, 21 Jul 2017 10:27:28 +0000 (06:27 -0400)
commit1e9b62c1b609fa5db3e57a257f24e2b7908cf974
treeacb28b68b68557c40cd62c802ac3b8b12f708306
parent0f04dab0b7807f6a4d06278f30ca737a4304ff82
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 <john.spray@redhat.com>
src/common/options.cc
src/common/options.h
src/tools/rbd/action/Export.cc
src/tools/rbd/action/Import.cc
src/tools/rbd_mirror/InstanceReplayer.cc
src/tools/rbd_mirror/Instances.cc
src/tools/rbd_mirror/LeaderWatcher.cc