From e1262a1078b0a8bd4bf61d01f4ef88705de1440b Mon Sep 17 00:00:00 2001 From: Willi Goesgens Date: Wed, 6 May 2015 18:06:28 +0200 Subject: [PATCH] Initialize forgottone member. --- arangod/V8Server/v8-collection-util.cpp | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/arangod/V8Server/v8-collection-util.cpp b/arangod/V8Server/v8-collection-util.cpp index 6eef991b3e..cc46f4fd59 100644 --- a/arangod/V8Server/v8-collection-util.cpp +++ b/arangod/V8Server/v8-collection-util.cpp @@ -73,13 +73,14 @@ TRI_vocbase_col_t* CoordinatorCollection (TRI_vocbase_t* vocbase, return nullptr; } - c->_isLocal = false; - c->_vocbase = vocbase; - c->_type = ci.type(); - c->_cid = ci.id(); - c->_planId = ci.id(); - c->_status = ci.status(); - c->_collection = 0; + c->_internalVersion = 0; + c->_isLocal = false; + c->_vocbase = vocbase; + c->_type = ci.type(); + c->_cid = ci.id(); + c->_planId = ci.id(); + c->_status = ci.status(); + c->_collection = nullptr; std::string const name = ci.name(); @@ -218,7 +219,7 @@ v8::Handle WrapCollection (v8::Isolate* isolate, TRI_GET_GLOBAL_STRING(VersionKey); result->ForceSet(_IdKey, V8CollectionId(isolate, collection->_cid), v8::ReadOnly); result->Set(_DbNameKey, TRI_V8_STRING(collection->_dbName)); - result->ForceSet(VersionKey, v8::Number::New(isolate, (double) collection->_internalVersion), v8::DontEnum); + result->ForceSet(VersionKey, v8::Integer::NewFromUnsigned(isolate, collection->_internalVersion), v8::DontEnum); } return scope.Escape(result);