1
0
Fork 0

RocksDB inventory now includes indexees as well

This commit is contained in:
Michael Hackstein 2017-04-27 18:11:06 +02:00
parent 7aac0028b0
commit 70f5413fe8
1 changed files with 12 additions and 4 deletions

View File

@ -372,13 +372,21 @@ void RocksDBEngine::getCollectionInfo(TRI_vocbase_t* vocbase, TRI_voc_cid_t cid,
THROW_ARANGO_EXCEPTION(result.errorNumber());
}
builder.add("parameters", VPackSlice(value.buffer()->data()));
VPackSlice fullParameters = VPackSlice(value.buffer()->data());
builder.add("parameters", fullParameters);
if (includeIndexes) {
// dump index information
builder.add("indexes", VPackValue(VPackValueType::Array));
// TODO
builder.close();
VPackSlice indexes = fullParameters.get("indexes");
builder.add(VPackValue("indexes"));
if (indexes.isArray()) {
builder.add(indexes);
} else {
// Insert an empty array instead
builder.openArray();
builder.close();
}
}
builder.close();