mirror of https://gitee.com/bigwinds/arangodb
Merge branch 'devel' of github.com:arangodb/arangodb into devel
This commit is contained in:
commit
a3506ab4f9
|
@ -792,6 +792,7 @@ static void JS_DocumentVocbaseCol(
|
|||
TRI_V8_TRY_CATCH_END
|
||||
}
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
/// @brief drops a collection, case of a coordinator in a cluster
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
@ -842,7 +843,11 @@ static void JS_DropVocbaseCol(v8::FunctionCallbackInfo<v8::Value> const& args) {
|
|||
|
||||
// If we are a coordinator in a cluster, we have to behave differently:
|
||||
if (ServerState::instance()->isCoordinator()) {
|
||||
#ifdef USE_ENTERPRISE
|
||||
DropVocbaseColCoordinatorEnterprise(args, collection);
|
||||
#else
|
||||
DropVocbaseColCoordinator(args, collection);
|
||||
#endif
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -56,4 +56,9 @@ void TRI_InitV8Collection(v8::Handle<v8::Context> context,
|
|||
TRI_v8_global_t* v8g, v8::Isolate* isolate,
|
||||
v8::Handle<v8::ObjectTemplate> ArangoDBNS);
|
||||
|
||||
#ifdef USE_ENTERPRISE
|
||||
void DropVocbaseColCoordinatorEnterprise(
|
||||
v8::FunctionCallbackInfo<v8::Value> const& args,
|
||||
arangodb::LogicalCollection* collection);
|
||||
#endif
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue