mirror of https://gitee.com/bigwinds/arangodb
Enable some more ClusterComm stuff for dbServers.
This commit is contained in:
parent
fa5096a710
commit
9714979d73
|
@ -1632,9 +1632,12 @@ static v8::Handle<v8::Value> JS_Enquire (v8::Arguments const& argv) {
|
||||||
TRI_V8_EXCEPTION_USAGE(scope, "enquire(operationID)");
|
TRI_V8_EXCEPTION_USAGE(scope, "enquire(operationID)");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ServerState::instance()->getRole() != ServerState::ROLE_COORDINATOR) {
|
// Disabled to allow communication originating in a DBserver:
|
||||||
TRI_V8_EXCEPTION_INTERNAL(scope,"request works only in coordinator role");
|
// 31.7.2014 Max
|
||||||
}
|
|
||||||
|
// if (ServerState::instance()->getRole() != ServerState::ROLE_COORDINATOR) {
|
||||||
|
// TRI_V8_EXCEPTION_INTERNAL(scope,"request works only in coordinator role");
|
||||||
|
// }
|
||||||
|
|
||||||
ClusterComm* cc = ClusterComm::instance();
|
ClusterComm* cc = ClusterComm::instance();
|
||||||
|
|
||||||
|
@ -1674,9 +1677,12 @@ static v8::Handle<v8::Value> JS_Wait (v8::Arguments const& argv) {
|
||||||
// - shardID (string)
|
// - shardID (string)
|
||||||
// - timeout (number)
|
// - timeout (number)
|
||||||
|
|
||||||
if (ServerState::instance()->getRole() != ServerState::ROLE_COORDINATOR) {
|
// Disabled to allow communication originating in a DBserver:
|
||||||
TRI_V8_EXCEPTION_INTERNAL(scope,"request works only in coordinator role");
|
// 31.7.2014 Max
|
||||||
}
|
|
||||||
|
// if (ServerState::instance()->getRole() != ServerState::ROLE_COORDINATOR) {
|
||||||
|
// TRI_V8_EXCEPTION_INTERNAL(scope,"request works only in coordinator role");
|
||||||
|
// }
|
||||||
|
|
||||||
ClusterComm* cc = ClusterComm::instance();
|
ClusterComm* cc = ClusterComm::instance();
|
||||||
|
|
||||||
|
@ -1748,9 +1754,12 @@ static v8::Handle<v8::Value> JS_Drop (v8::Arguments const& argv) {
|
||||||
// - operationID (number)
|
// - operationID (number)
|
||||||
// - shardID (string)
|
// - shardID (string)
|
||||||
|
|
||||||
if (ServerState::instance()->getRole() != ServerState::ROLE_COORDINATOR) {
|
// Disabled to allow communication originating in a DBserver:
|
||||||
TRI_V8_EXCEPTION_INTERNAL(scope,"request works only in coordinator role");
|
// 31.7.2014 Max
|
||||||
}
|
|
||||||
|
// if (ServerState::instance()->getRole() != ServerState::ROLE_COORDINATOR) {
|
||||||
|
// TRI_V8_EXCEPTION_INTERNAL(scope,"request works only in coordinator role");
|
||||||
|
// }
|
||||||
|
|
||||||
ClusterComm* cc = ClusterComm::instance();
|
ClusterComm* cc = ClusterComm::instance();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue