mirror of https://gitee.com/bigwinds/arangodb
Another snapshot.
This commit is contained in:
parent
48ca59b4c0
commit
fad55bda0e
|
|
@ -1106,6 +1106,10 @@ static void CreateCollectionCoordinator (const v8::FunctionCallbackInfo<v8::Valu
|
|||
auto idxJson = primaryIndex->toJson(TRI_UNKNOWN_MEM_ZONE, false);
|
||||
|
||||
TRI_json_t* index = idxJson.json();
|
||||
auto indexVelocy = triagens::basics::JsonHelper::toVelocyPack(index);
|
||||
TRI_FreeJson(TRI_UNKNOWN_MEM_ZONE, index);
|
||||
|
||||
velocy.add(indexVelocy->slice());
|
||||
|
||||
TRI_json_t* indexes;
|
||||
TRI_json_t* json;
|
||||
|
|
|
|||
|
|
@ -57,4 +57,5 @@ void TRI_InitV8indexArangoDB (v8::Isolate* isolate,
|
|||
|
||||
void TRI_InitV8indexCollection (v8::Isolate* isolate,
|
||||
v8::Handle<v8::ObjectTemplate> rt);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -310,7 +310,9 @@ namespace triagens {
|
|||
TRI_json_t const* json,
|
||||
std::shared_ptr<arangodb::velocypack::Builder> builder) {
|
||||
std::string tmp = toString(json);
|
||||
arangodb::velocypack::Parser parser(builder);
|
||||
arangodb::velocypack::Options opt;
|
||||
opt.clearBuilderBeforeParse = false;
|
||||
arangodb::velocypack::Parser parser(builder, &opt);
|
||||
try {
|
||||
parser.parse(tmp);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue