diff options
| author | Chris Lu <chris.lu@gmail.com> | 2019-05-26 00:21:17 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2019-05-26 00:21:17 -0700 |
| commit | af67d99ca4aae35b3732654dda52aaa348a75fd9 (patch) | |
| tree | 0366e98fdccf1ce841bb4ecc367f0b9ef43e9c74 /weed/storage | |
| parent | db94a41f9e28e620b7527d9cca51f9a052a81184 (diff) | |
| download | seaweedfs-af67d99ca4aae35b3732654dda52aaa348a75fd9.tar.xz seaweedfs-af67d99ca4aae35b3732654dda52aaa348a75fd9.zip | |
incrementally update master ec shards state
Diffstat (limited to 'weed/storage')
| -rw-r--r-- | weed/storage/erasure_coding/ec_volume_info.go | 4 |
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 +} |
