mirror of https://gitee.com/bigwinds/arangodb
RocksDB inventory now includes indexees as well
This commit is contained in:
parent
7aac0028b0
commit
70f5413fe8
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue