]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mon: LogMonitor: handle boolean options consistently 5357/head
authorJoao Eduardo Luis <joao@suse.de>
Mon, 27 Jul 2015 20:17:31 +0000 (21:17 +0100)
committerJoao Eduardo Luis <joao@suse.de>
Fri, 28 Aug 2015 11:32:03 +0000 (12:32 +0100)
commitcfcacb89a195da9571a7a23fe6371cabe60ed48b
treefae747ee01a5e04a6935d289e36cbcc4e85cd632
parentb6cc488d561ad8008e80a60c5bda82392ab05cfe
mon: LogMonitor: handle boolean options consistently

'mon_cluster_log_to_syslog' gets a string of key/value pairs, values
in the pair being booleans, and keys being optional (one can simply
specify the value). However, we weren't being consistent with the
boolean behavior when handling option values. e.g., the user expects
'1' and '0' to mean 'true' and 'false' respectively, and expects
'mon_cluster_log_to_syslog' to understand both '1' and '0', alongside
with 'true' and 'false'.

All values not 'true' or '1' will be considered 'false'.

Fixes: #12325
Signed-off-by: Joao Eduardo Luis <joao@suse.de>
src/mon/LogMonitor.cc
src/mon/LogMonitor.h