diff options
author | Tor Brede Vekterli <vekterli@verizonmedia.com> | 2020-11-12 13:27:56 +0000 |
---|---|---|
committer | Tor Brede Vekterli <vekterli@verizonmedia.com> | 2020-11-12 13:54:16 +0000 |
commit | 28f5f6d0a22ceef90246a159d77cc8acc1005b19 (patch) | |
tree | b6071fff041bd9468ef61aff93c3aa3c6597d5f7 /persistence | |
parent | 152d8f57d0d62506c83894907ca3c2e1fc56dfd6 (diff) |
Enforce minimum bucked used bits at document metastore load time
Diffstat (limited to 'persistence')
-rw-r--r-- | persistence/src/vespa/persistence/spi/bucket_limits.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/persistence/src/vespa/persistence/spi/bucket_limits.h b/persistence/src/vespa/persistence/spi/bucket_limits.h new file mode 100644 index 00000000000..65b2660eb23 --- /dev/null +++ b/persistence/src/vespa/persistence/spi/bucket_limits.h @@ -0,0 +1,17 @@ +#pragma once + +#include <cstdint> + +namespace storage::spi { + +/** + * Wrapper of constants that specify absolute lower and upper bounds for buckets + * that are to be processed on a node. These invariants must be maintained by + * split and join operations, as well as bucket creation. + */ +struct BucketLimits { + constexpr static uint8_t MinUsedBits = 8; + constexpr static uint8_t MaxUsedBits = 58; +}; + +} |