]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mon: register tell/asock commands using info from local_mon_commands
authorKefu Chai <kchai@redhat.com>
Tue, 19 Nov 2019 03:36:11 +0000 (11:36 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 20 Dec 2019 07:56:04 +0000 (15:56 +0800)
commit3394b70ba18cffa49317141ff444ba9990d6170b
tree4af6b2e3b722110f624b6745a21c3a5693b3a36e
parent0188b850f0363f81d08dd4eeaae7866726d76847
mon: register tell/asock commands using info from local_mon_commands

since all tell/asock commands are listed in local_mon_command, and all
of them are noforward, also all noforward commands are tell/asock
commands. we can just use the information from local_mon_command to
register them, to avoid the repeating, and for better readability.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/mon/Monitor.cc