8000 fix "fix" for collection figures (#11323) · arangodb/arangodb@8d4dbc1 · GitHub
[go: up one dir, main page]

Skip to content

Commit 8d4dbc1

Browse files
authored
fix "fix" for collection figures (#11323)
1 parent 322e689 commit 8d4dbc1

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

arangod/Cluster/ClusterMethods.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,14 @@ void recursiveAddRocksDB(VPackSlice const& value, VPackBuilder& builder) {
216216
{"cacheUsage"})));
217217
updated.add("documentsSize", VPackValue(addFigures<size_t>(value, builder.slice(),
218218
{"documentsSize"})));
219+
220+
updated.add("indexes", VPackValue(VPackValueType::Object));
221+
updated.add("count", VPackValue(addFigures<size_t>(value, builder.slice(),
222+
{"indexes", "count"})));
223+
updated.add("size", VPackValue(addFigures<size_t>(value, builder.slice(),
224+
{"indexes", "size"})));
225+
updated.close();
226+
219227
updated.close();
220228

221229
TRI_ASSERT(updated.slice().isObject());

tests/rb/HttpInterface/api-collection-rocksdb-spec.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,8 @@
286286
doc.parsed_response['status'].should eq(3)
287287
doc.parsed_response['count'].should be_kind_of(Integer)
288288
doc.parsed_response['count'].should eq(0)
289+
doc.parsed_response['figures']['indexes']['count'].should be_kind_of(Integer)
290+
doc.parsed_response['figures']['indexes']['size'].should be_kind_of(Integer)
289291
doc.parsed_response['figures']['cacheSize'].should be_kind_of(Integer)
290292
[true, false].should include(doc.parsed_response['figures']['cacheInUse'])
291293
doc.parsed_response['figures']['cacheUsage'].should be_kind_of(Integer)

0 commit comments

Comments
 (0)
0