diff options
-rw-r--r-- | storage/src/vespa/storage/common/bucket_utils.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/storage/src/vespa/storage/common/bucket_utils.h b/storage/src/vespa/storage/common/bucket_utils.h index 4d29b3c6204..d0dedfabcdb 100644 --- a/storage/src/vespa/storage/common/bucket_utils.h +++ b/storage/src/vespa/storage/common/bucket_utils.h @@ -11,7 +11,7 @@ namespace storage { /** * Returns the super bucket key of the given bucket id key based on the minimum used bits allowed. */ -uint64_t get_super_bucket_key(const document::BucketId& bucket_id) { +inline uint64_t get_super_bucket_key(const document::BucketId& bucket_id) noexcept { assert(bucket_id.getUsedBits() >= spi::BucketLimits::MinUsedBits); // Since bucket keys have count-bits at the LSB positions, we want to look at the MSBs instead. return (bucket_id.toKey() >> (64 - spi::BucketLimits::MinUsedBits)); |