1
0
Fork 0

Allow asynchronous cluster internal communication between DBservers.

This commit is contained in:
Max Neunhoeffer 2014-07-30 10:47:28 +02:00
parent 39d7c71fce
commit 92d68cfd0b
1 changed files with 4 additions and 1 deletions

View File

@ -95,14 +95,17 @@ string const& RestShardHandler::queue () const {
////////////////////////////////////////////////////////////////////////////////
triagens::rest::HttpHandler::status_t RestShardHandler::execute () {
// Deactivated to allow for asynchronous cluster internal communication
// between two DBservers. 30.7.2014 Max.
#if 0
ServerState::RoleEnum role = ServerState::instance()->getRole();
if (role != ServerState::ROLE_COORDINATOR) {
generateError(triagens::rest::HttpResponse::BAD,
(int) triagens::rest::HttpResponse::BAD,
"this API is meant to be called on a coordinator node");
return status_t(HANDLER_DONE);
}
#endif
bool found;
char const* _coordinator = _request->header("x-arango-coordinator", found);