Skip to content

Commit

Permalink
Make sure shard info always stays in a cleanup state (#4336)
Browse files Browse the repository at this point in the history
  • Loading branch information
wxing1292 committed May 17, 2023
1 parent a3fca8d commit 1766743
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion service/history/shard/context_impl.go
Original file line number Diff line number Diff line change
Expand Up @@ -1215,7 +1215,7 @@ func (s *ContextImpl) renewRangeLocked(isStealing bool) error {
s.taskSequenceNumber = updatedShardInfo.GetRangeId() << s.config.RangeSizeBits
s.maxTaskSequenceNumber = (updatedShardInfo.GetRangeId() + 1) << s.config.RangeSizeBits
s.immediateTaskExclusiveMaxReadLevel = s.taskSequenceNumber
s.shardInfo = updatedShardInfo
s.shardInfo = loadShardInfoCompatibilityCheck(s.clusterMetadata, copyShardInfo(updatedShardInfo))

return nil
}
Expand Down

0 comments on commit 1766743

Please sign in to comment.