summaryrefslogtreecommitdiffstats
path: root/src/mon/MonMap.h
diff options
context:
space:
mode:
authorPatrick Donnelly <pdonnell@redhat.com>2020-10-22 19:08:26 +0200
committerPatrick Donnelly <pdonnell@redhat.com>2020-10-24 01:33:44 +0200
commit21d9f8333b8c76979bbe90d60a8ad6ebb5e36c76 (patch)
tree31214b2a3e92421071a0e657e43d1650ee84433d /src/mon/MonMap.h
parenttest/mon: add tests for mon_host build by hostname (diff)
downloadceph-21d9f8333b8c76979bbe90d60a8ad6ebb5e36c76.tar.xz
ceph-21d9f8333b8c76979bbe90d60a8ad6ebb5e36c76.zip
mon/MonMap: fix unconditional failure for init_with_hosts
This bug prevents setting mon_host to a DNS name. Fixes: https://tracker.ceph.com/issues/47951 Fixes: 7a1f02acfe6b5d8a760efd16bb594a0656b39eac Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
Diffstat (limited to 'src/mon/MonMap.h')
-rw-r--r--src/mon/MonMap.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/mon/MonMap.h b/src/mon/MonMap.h
index c409ff9e112..02304edfdd2 100644
--- a/src/mon/MonMap.h
+++ b/src/mon/MonMap.h
@@ -493,11 +493,10 @@ protected:
*
* @param addrs list of entity_addrvec_t's
* @param prefix prefix to prepend to generated mon names
- * @return 0 for success, -errno on error
*/
- int init_with_addrs(const std::vector<entity_addrvec_t>& addrs,
- bool for_mkfs,
- std::string_view prefix);
+ void init_with_addrs(const std::vector<entity_addrvec_t>& addrs,
+ bool for_mkfs,
+ std::string_view prefix);
/**
* build a monmap from a list of ips
*