aboutsummaryrefslogtreecommitdiff
path: root/weed/storage/erasure_coding
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2019-05-26 00:21:17 -0700
committerChris Lu <chris.lu@gmail.com>2019-05-26 00:21:17 -0700
commitaf67d99ca4aae35b3732654dda52aaa348a75fd9 (patch)
tree0366e98fdccf1ce841bb4ecc367f0b9ef43e9c74 /weed/storage/erasure_coding
parentdb94a41f9e28e620b7527d9cca51f9a052a81184 (diff)
downloadseaweedfs-af67d99ca4aae35b3732654dda52aaa348a75fd9.tar.xz
seaweedfs-af67d99ca4aae35b3732654dda52aaa348a75fd9.zip
incrementally update master ec shards state
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
+}