mirror of https://gitee.com/bigwinds/arangodb
Fixed VPack parser error during startup
This commit is contained in:
parent
2b3f3f997b
commit
f708becba1
|
@ -1579,7 +1579,6 @@ static void CreateVocBase (const v8::FunctionCallbackInfo<v8::Value>& args,
|
||||||
|
|
||||||
|
|
||||||
VPackBuilder builder;
|
VPackBuilder builder;
|
||||||
builder.openObject();
|
|
||||||
VPackSlice infoSlice;
|
VPackSlice infoSlice;
|
||||||
if (2 <= args.Length()) {
|
if (2 <= args.Length()) {
|
||||||
if (! args[1]->IsObject()) {
|
if (! args[1]->IsObject()) {
|
||||||
|
@ -1590,7 +1589,6 @@ static void CreateVocBase (const v8::FunctionCallbackInfo<v8::Value>& args,
|
||||||
if (res != TRI_ERROR_NO_ERROR) {
|
if (res != TRI_ERROR_NO_ERROR) {
|
||||||
TRI_V8_THROW_EXCEPTION(res);
|
TRI_V8_THROW_EXCEPTION(res);
|
||||||
}
|
}
|
||||||
builder.close();
|
|
||||||
infoSlice = builder.slice();
|
infoSlice = builder.slice();
|
||||||
|
|
||||||
if (infoSlice.hasKey("journalSize")) {
|
if (infoSlice.hasKey("journalSize")) {
|
||||||
|
@ -1608,7 +1606,6 @@ static void CreateVocBase (const v8::FunctionCallbackInfo<v8::Value>& args,
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
builder.close();
|
|
||||||
infoSlice = builder.slice();
|
infoSlice = builder.slice();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue