aboutsummaryrefslogtreecommitdiff
path: root/weed/storage/erasure_coding
diff options
context:
space:
mode:
Diffstat (limited to 'weed/storage/erasure_coding')
-rw-r--r--weed/storage/erasure_coding/ec_volume_info.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/weed/storage/erasure_coding/ec_volume_info.go b/weed/storage/erasure_coding/ec_volume_info.go
index ef8cc4ed4..48f4713d9 100644
--- a/weed/storage/erasure_coding/ec_volume_info.go
+++ b/weed/storage/erasure_coding/ec_volume_info.go
@@ -91,3 +91,7 @@ func (b ShardBits) ShardIdCount() (count int) {
func (b ShardBits) Minus(other ShardBits) (ShardBits) {
return b &^ other
}
+
+func (b ShardBits) Plus(other ShardBits) (ShardBits) {
+ return b | other
+}