]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mon/MonMap: improve/fix initial monmap generation for mkfs
authorSage Weil <sage@redhat.com>
Wed, 9 Jan 2019 20:11:10 +0000 (14:11 -0600)
committerSage Weil <sage@redhat.com>
Fri, 11 Jan 2019 01:00:39 +0000 (19:00 -0600)
commit0368fbd851806e7ab53681cd1da2acdae35a6f59
tree50305a95bba14401559d00f26d774e2e35354a80
parentcee2cf62abc3dc3f2d606ed28a5a2c94f6248ba8
mon/MonMap: improve/fix initial monmap generation for mkfs

The monmap generation from mon_host for mon mkfs was pretty much completely
broken.  Restructure the code.

Generally, prefer v2+v1 addrvecs, unless a specific addr type and/or
port is specified.

Signed-off-by: Sage Weil <sage@redhat.com>
src/mon/MonMap.cc
src/mon/MonMap.h