diff options
author | Geir Storli <geirst@verizonmedia.com> | 2021-01-29 14:29:59 +0000 |
---|---|---|
committer | Geir Storli <geirst@verizonmedia.com> | 2021-01-29 14:34:29 +0000 |
commit | 9a676ff3b35353424d9a02a4c09d9dd1bb655f46 (patch) | |
tree | caab73fa5881bb5f2527b22d3138663ba27d48be /persistence | |
parent | 1341628ee1587fb39703a4fb6e3443286435dca0 (diff) |
Wire reporting of attribute resource usage all the way to the cluster controller via the host info API.
Diffstat (limited to 'persistence')
-rw-r--r-- | persistence/src/vespa/persistence/spi/attribute_resource_usage.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/persistence/src/vespa/persistence/spi/attribute_resource_usage.h b/persistence/src/vespa/persistence/spi/attribute_resource_usage.h index 8d28370e504..02e0c248e3d 100644 --- a/persistence/src/vespa/persistence/spi/attribute_resource_usage.h +++ b/persistence/src/vespa/persistence/spi/attribute_resource_usage.h @@ -29,6 +29,7 @@ public: double get_usage() const noexcept { return _usage; } const vespalib::string& get_name() const noexcept { return _name; } + bool valid() const noexcept { return !_name.empty(); } bool operator==(const AttributeResourceUsage& rhs) const noexcept { return ((_usage == rhs._usage) && (_name == rhs._name)); |