mirror of https://gitee.com/bigwinds/arangodb
Accept more HTTP routes in maintenance mode at cluster start.
This commit is contained in:
parent
b16bd2e003
commit
59852b6b53
|
@ -159,14 +159,15 @@ HttpHandler* HttpHandlerFactory::createHandler(HttpRequest* request) {
|
|||
|
||||
// In the bootstrap phase, we would like that coordinators answer the
|
||||
// following to endpoints, but not yet others:
|
||||
if (MaintenanceMode &&
|
||||
(!ServerState::instance()->isCoordinator() ||
|
||||
(path != "/_api/shard-comm" &&
|
||||
path.find("/_api/agency/agency-callbacks") == std::string::npos &&
|
||||
path.find("/_api/aql") == std::string::npos))) {
|
||||
LOG(DEBUG) << "Maintenance mode: refused path: "
|
||||
<< path;
|
||||
return new MaintenanceHandler(request);
|
||||
if (MaintenanceMode) {
|
||||
if ((!ServerState::instance()->isCoordinator() &&
|
||||
path.find("/_api/agency/agency-callbacks") == std::string::npos) ||
|
||||
(path != "/_api/shard-comm" &&
|
||||
path.find("/_api/agency/agency-callbacks") == std::string::npos &&
|
||||
path.find("/_api/aql") == std::string::npos)) {
|
||||
LOG(DEBUG) << "Maintenance mode: refused path: " << path;
|
||||
return new MaintenanceHandler(request);
|
||||
}
|
||||
}
|
||||
|
||||
std::unordered_map<std::string, create_fptr> const& ii = _constructors;
|
||||
|
|
Loading…
Reference in New Issue