mirror of https://gitee.com/bigwinds/arangodb
Merge branch 'devel' of github.com:arangodb/arangodb into devel
This commit is contained in:
commit
235799a3b9
|
@ -210,10 +210,12 @@ void AgencyFeature::start() {
|
||||||
|
|
||||||
// Find the agency prefix:
|
// Find the agency prefix:
|
||||||
auto feature = ApplicationServer::getFeature<ClusterFeature>("Cluster");
|
auto feature = ApplicationServer::getFeature<ClusterFeature>("Cluster");
|
||||||
|
if (!feature->agencyPrefix().empty()) {
|
||||||
arangodb::consensus::Supervision::setAgencyPrefix(
|
arangodb::consensus::Supervision::setAgencyPrefix(
|
||||||
std::string("/") + feature->agencyPrefix());
|
std::string("/") + feature->agencyPrefix());
|
||||||
arangodb::consensus::Job::agencyPrefix
|
arangodb::consensus::Job::agencyPrefix
|
||||||
= std::string("/") + feature->agencyPrefix();
|
= std::string("/") + feature->agencyPrefix();
|
||||||
|
}
|
||||||
|
|
||||||
// TODO: Port this to new options handling
|
// TODO: Port this to new options handling
|
||||||
std::string endpoint;
|
std::string endpoint;
|
||||||
|
|
|
@ -119,7 +119,9 @@ class Supervision : public arangodb::Thread {
|
||||||
}
|
}
|
||||||
|
|
||||||
static void setAgencyPrefix(std::string prefix) {
|
static void setAgencyPrefix(std::string prefix) {
|
||||||
|
LOG_TOPIC(WARN, Logger::SUPERVISION) << "WTF? " << _agencyPrefix;
|
||||||
_agencyPrefix = prefix;
|
_agencyPrefix = prefix;
|
||||||
|
LOG_TOPIC(WARN, Logger::SUPERVISION) << "WTF? " << _agencyPrefix;
|
||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
Loading…
Reference in New Issue