diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2021-10-28 12:49:59 +0000 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2021-10-28 12:49:59 +0000 |
commit | c479b8a6b2f64c4cc76d185755ac905c2abddfc1 (patch) | |
tree | 531ce1e65f9d95453c27baebceabe798bd193603 /searchlib | |
parent | c184a8e5cb4960b1b65d7431d23a6b0b6eb13d47 (diff) |
Do not hold the bucket guard longer than necessary.
Diffstat (limited to 'searchlib')
-rw-r--r-- | searchlib/src/vespa/searchlib/common/idocumentmetastore.h | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/searchlib/src/vespa/searchlib/common/idocumentmetastore.h b/searchlib/src/vespa/searchlib/common/idocumentmetastore.h index 968492602bf..d663d1659e1 100644 --- a/searchlib/src/vespa/searchlib/common/idocumentmetastore.h +++ b/searchlib/src/vespa/searchlib/common/idocumentmetastore.h @@ -22,7 +22,7 @@ struct DocumentMetaData { typedef std::vector<DocumentMetaData> Vector; - DocumentMetaData() + DocumentMetaData() noexcept : lid(0), timestamp(0), bucketId(), @@ -33,19 +33,15 @@ struct DocumentMetaData { DocumentMetaData(DocId lid_, storage::spi::Timestamp timestamp_, document::BucketId bucketId_, - const document::GlobalId &gid_) - : lid(lid_), - timestamp(timestamp_), - bucketId(bucketId_), - gid(gid_), - removed(false) + const document::GlobalId &gid_) noexcept + : DocumentMetaData(lid_, timestamp_, bucketId_, gid_, false) { } DocumentMetaData(DocId lid_, storage::spi::Timestamp timestamp_, document::BucketId bucketId_, const document::GlobalId &gid_, - bool removed_) + bool removed_) noexcept : lid(lid_), timestamp(timestamp_), bucketId(bucketId_), |