diff options
author | Tor Brede Vekterli <vekterli@yahooinc.com> | 2021-11-15 14:33:49 +0000 |
---|---|---|
committer | Tor Brede Vekterli <vekterli@yahooinc.com> | 2021-11-15 14:33:49 +0000 |
commit | 31d7bb1db30076eb7a33085d3bf2dd12683bf557 (patch) | |
tree | 00699d7d67c125886d7a04f5c7b36880a745c059 /storageapi | |
parent | 88aef2427e135c269c39b99cd3a7de7351b2608c (diff) |
Address PR comments
* Add `from_distributor()` utility function to `MergeBucketCommand`
* Simplify boolean expression by moving sub-expression to own statement
* Improve wording of config parameter
Diffstat (limited to 'storageapi')
-rw-r--r-- | storageapi/src/vespa/storageapi/message/bucket.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/storageapi/src/vespa/storageapi/message/bucket.h b/storageapi/src/vespa/storageapi/message/bucket.h index d62888e0527..5fd79ffffea 100644 --- a/storageapi/src/vespa/storageapi/message/bucket.h +++ b/storageapi/src/vespa/storageapi/message/bucket.h @@ -138,6 +138,7 @@ public: _use_unordered_forwarding = unordered_forwarding; } [[nodiscard]] bool use_unordered_forwarding() const noexcept { return _use_unordered_forwarding; } + [[nodiscard]] bool from_distributor() const noexcept { return _chain.empty(); } void print(std::ostream& out, bool verbose, const std::string& indent) const override; DECLARE_STORAGECOMMAND(MergeBucketCommand, onMergeBucket) }; |