summaryrefslogtreecommitdiffstats
path: root/document/src
diff options
context:
space:
mode:
authorTor Brede Vekterli <vekterli@yahoo-inc.com>2017-10-25 13:46:44 +0200
committerGitHub <noreply@github.com>2017-10-25 13:46:44 +0200
commitf671f4e689e1dc2f9e878ac678c626096cece26e (patch)
treedfcce03935dd71092ce7cfec13d9dbdc5f786515 /document/src
parentb95006b19faca42ccbcfddbced3b83ffd7a7d273 (diff)
parentaf0564b13595274c3d3e3d79237cc3b3dd88175f (diff)
Merge pull request #3863 from vespa-engine/toregge/use-document-bucket-to-notify-bucket-ownership-changes
Toregge/use document bucket to notify bucket ownership changes
Diffstat (limited to 'document/src')
-rw-r--r--document/src/vespa/document/bucket/bucket.cpp6
-rw-r--r--document/src/vespa/document/bucket/bucket.h1
2 files changed, 7 insertions, 0 deletions
diff --git a/document/src/vespa/document/bucket/bucket.cpp b/document/src/vespa/document/bucket/bucket.cpp
index 841d0841381..d2855c0b3a1 100644
--- a/document/src/vespa/document/bucket/bucket.cpp
+++ b/document/src/vespa/document/bucket/bucket.cpp
@@ -5,6 +5,12 @@
namespace document {
+Bucket::Bucket() noexcept
+ : _bucketSpace(BucketSpace::placeHolder()),
+ _bucketId()
+{
+}
+
vespalib::string Bucket::toString() const
{
vespalib::asciistream os;
diff --git a/document/src/vespa/document/bucket/bucket.h b/document/src/vespa/document/bucket/bucket.h
index f6e44354834..5aa9b360c42 100644
--- a/document/src/vespa/document/bucket/bucket.h
+++ b/document/src/vespa/document/bucket/bucket.h
@@ -11,6 +11,7 @@ namespace document {
class Bucket {
public:
+ Bucket() noexcept;
Bucket(const Bucket&) noexcept = default;
Bucket& operator=(const Bucket&) noexcept = default;
Bucket(BucketSpace bucketSpace, BucketId bucketId) noexcept : _bucketSpace(bucketSpace), _bucketId(bucketId) {}