1
0
Fork 0

Agency init nicer.

This commit is contained in:
Max Neunhoeffer 2016-05-03 11:08:13 +02:00
parent b3c00c0c2f
commit 0a2c185dd9
1 changed files with 12 additions and 8 deletions

View File

@ -653,10 +653,12 @@ bool AgencyComm::tryInitializeStructure() {
builder.add(VPackValue("Databases"));
{
VPackObjectBuilder d(&builder);
builder.add("_system", VPackValue(VPackValueType::Object));
builder.add("name", VPackValue("_system"));
builder.add("id", VPackValue("1"));
builder.close();
builder.add(VPackValue("_system"));
{
VPackObjectBuilder d2(&builder);
builder.add("name", VPackValue("_system"));
builder.add("id", VPackValue("1"));
}
//KV builder.add("_system",
// VPackValue("{name:_system, id:1}"));
}
@ -685,10 +687,12 @@ bool AgencyComm::tryInitializeStructure() {
builder.add(VPackValue("Databases"));
{
VPackObjectBuilder d(&builder);
builder.add("_system", VPackValue(VPackValueType::Object));
builder.add("name", VPackValue("_system"));
builder.add("id", VPackValue("1"));
builder.close();
builder.add(VPackValue("_system"));
{
VPackObjectBuilder d2(&builder);
builder.add("name", VPackValue("_system"));
builder.add("id", VPackValue("1"));
}
//KV builder.add("_system",
// VPackValue("{name:_system, id:1}"));
}