aboutsummaryrefslogtreecommitdiffstats
path: root/searchcore
diff options
context:
space:
mode:
authorGeir Storli <geirst@verizonmedia.com>2021-08-20 15:11:59 +0000
committerGeir Storli <geirst@verizonmedia.com>2021-08-20 15:16:56 +0000
commit1656787635f63bbec987f07060732e6606b8d9ed (patch)
treed36a2e575626eebd39b9804508b24dc961a63d02 /searchcore
parentece9618bad3bd6f1af33f3e11106634762027034 (diff)
Expose address space usage for all attribute components in explorer.
Diffstat (limited to 'searchcore')
-rw-r--r--searchcore/src/vespa/searchcore/proton/attribute/attribute_vector_explorer.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/searchcore/src/vespa/searchcore/proton/attribute/attribute_vector_explorer.cpp b/searchcore/src/vespa/searchcore/proton/attribute/attribute_vector_explorer.cpp
index 51ac20dd4bb..aae5ff2436b 100644
--- a/searchcore/src/vespa/searchcore/proton/attribute/attribute_vector_explorer.cpp
+++ b/searchcore/src/vespa/searchcore/proton/attribute/attribute_vector_explorer.cpp
@@ -63,8 +63,9 @@ convertAddressSpaceToSlime(const AddressSpace &addressSpace, Cursor &object)
void
convertAddressSpaceUsageToSlime(const AddressSpaceUsage &usage, Cursor &object)
{
- convertAddressSpaceToSlime(usage.enum_store_usage(), object.setObject("enumStore"));
- convertAddressSpaceToSlime(usage.multi_value_usage(), object.setObject("multiValue"));
+ for (const auto& entry : usage.get_all()) {
+ convertAddressSpaceToSlime(entry.second, object.setObject(entry.first));
+ }
}
void