aboutsummaryrefslogtreecommitdiffstats
path: root/document/src/vespa/document/bucket/bucketid.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'document/src/vespa/document/bucket/bucketid.cpp')
-rw-r--r--document/src/vespa/document/bucket/bucketid.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/document/src/vespa/document/bucket/bucketid.cpp b/document/src/vespa/document/bucket/bucketid.cpp
index 06ddfa60d67..fcc9a0df4f6 100644
--- a/document/src/vespa/document/bucket/bucketid.cpp
+++ b/document/src/vespa/document/bucket/bucketid.cpp
@@ -1,4 +1,4 @@
-// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
+// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include "bucketid.h"
#include <iomanip>
@@ -8,7 +8,6 @@
#include <vespa/vespalib/stllike/hash_set.hpp>
#include <vespa/vespalib/util/stringfmt.h>
#include <limits>
-#include <xxh3.h>
using vespalib::nbostream;
using vespalib::asciistream;
@@ -79,8 +78,7 @@ void BucketId::initialize() noexcept {
uint64_t
BucketId::hash::operator () (const BucketId& bucketId) const noexcept {
- const uint64_t raw_id = bucketId.getId();
- return XXH3_64bits(&raw_id, sizeof(uint64_t));
+ return vespalib::xxhash::xxh3_64(bucketId.getId());
}
vespalib::string