diff options
Diffstat (limited to 'document')
-rw-r--r-- | document/src/vespa/document/bucket/bucketid.cpp | 4 | ||||
-rw-r--r-- | document/src/vespa/document/bucket/bucketid.h | 3 |
2 files changed, 3 insertions, 4 deletions
diff --git a/document/src/vespa/document/bucket/bucketid.cpp b/document/src/vespa/document/bucket/bucketid.cpp index 72dd3734ce7..9ca4db1e51c 100644 --- a/document/src/vespa/document/bucket/bucketid.cpp +++ b/document/src/vespa/document/bucket/bucketid.cpp @@ -78,7 +78,7 @@ void BucketId::initialize() noexcept { } uint64_t -BucketId::xxhash::operator () (const BucketId& bucketId) const noexcept { +BucketId::hash::operator () (const BucketId& bucketId) const noexcept { const uint64_t raw_id = bucketId.getId(); return XXH3_64bits(&raw_id, sizeof(uint64_t)); } @@ -158,4 +158,4 @@ operator>>(nbostream &is, BucketId &bucketId) } // document -VESPALIB_HASH_SET_INSTANTIATE_H(document::BucketId, document::BucketId::xxhash); +VESPALIB_HASH_SET_INSTANTIATE_H(document::BucketId, document::BucketId::hash); diff --git a/document/src/vespa/document/bucket/bucketid.h b/document/src/vespa/document/bucket/bucketid.h index 1f944f5349c..370948c1acc 100644 --- a/document/src/vespa/document/bucket/bucketid.h +++ b/document/src/vespa/document/bucket/bucketid.h @@ -36,10 +36,9 @@ namespace bucket { class BucketIdList; } class BucketId { public: - struct xxhash { + struct hash { uint64_t operator () (const BucketId& g) const noexcept; }; - using hash = xxhash; /** * The primitive type used to store bucket identifiers. If you use the |