summaryrefslogtreecommitdiffstats
path: root/persistence
diff options
context:
space:
mode:
authorGeir Storli <geirst@verizonmedia.com>2021-01-29 14:29:59 +0000
committerGeir Storli <geirst@verizonmedia.com>2021-01-29 14:34:29 +0000
commit9a676ff3b35353424d9a02a4c09d9dd1bb655f46 (patch)
treecaab73fa5881bb5f2527b22d3138663ba27d48be /persistence
parent1341628ee1587fb39703a4fb6e3443286435dca0 (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.h1
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));