]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mon/MonMap: fix mon priority
authorxie xingguo <xie.xingguo@zte.com.cn>
Fri, 15 Mar 2019 07:52:28 +0000 (15:52 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Fri, 15 Mar 2019 07:52:28 +0000 (15:52 +0800)
commit81d0ec148fcec817c06c376d87bcb6aa0fa96211
tree0aa01539f299afe8e75cb0b16f222cb89b28746e
parentcca5bd545c8a28a3a09261399cdf469a1f78ed44
mon/MonMap: fix mon priority

The mon priorities, if specified by configuration or through DNS,
might get lost in some scenarios.

Since the caller(s) of _add_ambiguous_addr should have taken good
care of the priority parameter in all cases (e.g., caller will
guarantee to pass in a sane (zeroed) value if unspecified), it should
be safe to apply priority unconditionally.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
src/mon/MonMap.cc