diff options
Diffstat (limited to 'storage/src/vespa/storage/bucketdb/bucketinfo.hpp')
-rw-r--r-- | storage/src/vespa/storage/bucketdb/bucketinfo.hpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/storage/src/vespa/storage/bucketdb/bucketinfo.hpp b/storage/src/vespa/storage/bucketdb/bucketinfo.hpp index ce7adc8af67..f8dbff38a99 100644 --- a/storage/src/vespa/storage/bucketdb/bucketinfo.hpp +++ b/storage/src/vespa/storage/bucketdb/bucketinfo.hpp @@ -159,21 +159,21 @@ BucketInfoBase<NodeSeq>::getNodes() const noexcept { } template <typename NodeSeq> -uint32_t -BucketInfoBase<NodeSeq>::getHighestDocumentCount() const noexcept { - uint32_t highest = 0; +BucketInfoBase<NodeSeq>::Highest +BucketInfoBase<NodeSeq>::getHighest() const noexcept { + Highest highest; for (const auto & n : _nodes) { - highest = std::max(highest, n.getDocumentCount()); + highest.update(n); } return highest; } template <typename NodeSeq> uint32_t -BucketInfoBase<NodeSeq>::getHighestTotalDocumentSize() const noexcept { +BucketInfoBase<NodeSeq>::getHighestDocumentCount() const noexcept { uint32_t highest = 0; for (const auto & n : _nodes) { - highest = std::max(highest, n.getTotalDocumentSize()); + highest = std::max(highest, n.getDocumentCount()); } return highest; } |