1
0
Fork 0

Initialize forgottone member.

This commit is contained in:
Willi Goesgens 2015-05-06 18:06:28 +02:00
parent 66c6fe6e2c
commit e1262a1078
1 changed files with 9 additions and 8 deletions

View File

@ -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<v8::Object> 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<v8::Object>(result);