mirror of https://gitee.com/bigwinds/arangodb
always load agency data, regardless of startup mode
This commit is contained in:
parent
74b70bf60f
commit
96d96ca977
|
@ -1663,6 +1663,11 @@ int ArangoServer::startupServer() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Loading ageny's persistent state
|
||||||
|
if(_applicationAgency->agent() != nullptr) {
|
||||||
|
_applicationAgency->agent()->load();
|
||||||
|
}
|
||||||
|
|
||||||
if (_disableAuthentication) {
|
if (_disableAuthentication) {
|
||||||
LOG(INFO) << "Authentication is turned off";
|
LOG(INFO) << "Authentication is turned off";
|
||||||
}
|
}
|
||||||
|
@ -1815,15 +1820,12 @@ void ArangoServer::waitForHeartbeat() {
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
/// @brief runs the server
|
/// @brief runs the server
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
int ArangoServer::runServer(TRI_vocbase_t* vocbase) {
|
int ArangoServer::runServer(TRI_vocbase_t* vocbase) {
|
||||||
// disabled maintenance mode
|
// disable maintenance mode
|
||||||
waitForHeartbeat();
|
waitForHeartbeat();
|
||||||
HttpHandlerFactory::setMaintenance(false);
|
HttpHandlerFactory::setMaintenance(false);
|
||||||
|
|
||||||
// Loading ageny's persistent state
|
|
||||||
if(_applicationAgency->agent()!=nullptr)
|
|
||||||
_applicationAgency->agent()->load();
|
|
||||||
|
|
||||||
// just wait until we are signalled
|
// just wait until we are signalled
|
||||||
_applicationServer->wait();
|
_applicationServer->wait();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue