incrementally update master ec shards state

This commit is contained in:
Chris Lu
2019-05-26 00:21:17 -07:00
parent db94a41f9e
commit af67d99ca4
4 changed files with 77 additions and 0 deletions

View File

@@ -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
}