diff --git a/arangod/V8Server/v8-collection.cpp b/arangod/V8Server/v8-collection.cpp index 1fab296450..214a65675d 100644 --- a/arangod/V8Server/v8-collection.cpp +++ b/arangod/V8Server/v8-collection.cpp @@ -1255,7 +1255,6 @@ static void JS_PropertiesVocbaseCol( v8::FunctionCallbackInfo const& args) { TRI_V8_TRY_CATCH_BEGIN(isolate); v8::HandleScope scope(isolate); - TRI_GET_GLOBALS(); arangodb::LogicalCollection* collection = TRI_UnwrapClass(args.Holder(), WRP_VOCBASE_COL_TYPE); @@ -1322,18 +1321,18 @@ static void JS_PropertiesVocbaseCol( } } + + auto c = ClusterInfo::instance()->getCollection( + databaseName, StringUtils::itoa(collection->cid())); + VPackBuilder vpackProperties; vpackProperties.openObject(); - collection->toVelocyPackForV8(vpackProperties); + c->toVelocyPackForV8(vpackProperties); vpackProperties.close(); // return the current parameter set v8::Handle result = TRI_VPackToV8(isolate, vpackProperties.slice())->ToObject(); - /* - auto c = ClusterInfo::instance()->getCollection( - databaseName, StringUtils::itoa(collection->cid())); - */ TRI_V8_RETURN(result); }