summaryrefslogtreecommitdiffstats
path: root/storage
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2023-08-09 11:19:55 +0200
committerGitHub <noreply@github.com>2023-08-09 11:19:55 +0200
commit439d5f9e989822b4674038e085f9df788e78b1b3 (patch)
treef7c6c161589a3c9f1e18930d55674b80032d69c8 /storage
parentd5974cfb1f089e79da8f53452d259ff0213d7d23 (diff)
parent74f4db465f03c772827ad679d47566d031c562c7 (diff)
Merge pull request #27990 from vespa-engine/balder/minor-noexcept
Add noexcept and minor style changes
Diffstat (limited to 'storage')
-rw-r--r--storage/src/vespa/storage/bucketdb/bucketinfo.h2
-rw-r--r--storage/src/vespa/storage/distributor/activecopy.cpp6
2 files changed, 4 insertions, 4 deletions
diff --git a/storage/src/vespa/storage/bucketdb/bucketinfo.h b/storage/src/vespa/storage/bucketdb/bucketinfo.h
index 1870d4c91d4..57ebf505a50 100644
--- a/storage/src/vespa/storage/bucketdb/bucketinfo.h
+++ b/storage/src/vespa/storage/bucketdb/bucketinfo.h
@@ -102,7 +102,7 @@ public:
array. This operation has undefined behaviour if the index given
is not within the node count.
*/
- const BucketCopy& getNodeRef(uint16_t idx) const {
+ const BucketCopy& getNodeRef(uint16_t idx) const noexcept {
return _nodes[idx];
}
diff --git a/storage/src/vespa/storage/distributor/activecopy.cpp b/storage/src/vespa/storage/distributor/activecopy.cpp
index a4ee4a51135..c46e9868cc8 100644
--- a/storage/src/vespa/storage/distributor/activecopy.cpp
+++ b/storage/src/vespa/storage/distributor/activecopy.cpp
@@ -24,9 +24,9 @@ namespace std {
namespace storage::distributor {
-ActiveCopy::ActiveCopy(uint16_t node, const BucketDatabase::Entry& e, const std::vector<uint16_t>& idealState) :
- _nodeIndex(node),
- _ideal(0xffff)
+ActiveCopy::ActiveCopy(uint16_t node, const BucketDatabase::Entry& e, const std::vector<uint16_t>& idealState)
+ : _nodeIndex(node),
+ _ideal(0xffff)
{
const BucketCopy* copy = e->getNode(node);
assert(copy != nullptr);