mirror of https://gitee.com/bigwinds/arangodb
Initialize forgottone member.
This commit is contained in:
parent
66c6fe6e2c
commit
e1262a1078
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue