]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
common/cmdparse: return cmd option using return value
authorKefu Chai <kchai@redhat.com>
Thu, 20 May 2021 03:00:06 +0000 (11:00 +0800)
committerKefu Chai <kchai@redhat.com>
Sat, 22 May 2021 16:31:09 +0000 (00:31 +0800)
commite29f1a5ec16c00f70c7b505769fbefe98db03d1b
treeb451c999e4456fdd06200f64f1b6863cd2ba0838
parent2505490e79399dc556b2244e05be9093908ee98d
common/cmdparse: return cmd option using return value

instead of

- always returning "true"
- returning using an input parameter

just return the value with retval. simpler this way.

Signed-off-by: Kefu Chai <kchai@redhat.com>
15 files changed:
src/common/cmdparse.h
src/mgr/DaemonServer.cc
src/mon/AuthMonitor.cc
src/mon/ConfigMonitor.cc
src/mon/HealthMonitor.cc
src/mon/KVMonitor.cc
src/mon/LogMonitor.cc
src/mon/MDSMonitor.cc
src/mon/MgrMonitor.cc
src/mon/Monitor.cc
src/mon/MonmapMonitor.cc
src/mon/OSDMonitor.cc
src/mon/PGMap.cc
src/osd/OSD.cc
src/osd/PrimaryLogPG.cc