Skip to content

Commit

Permalink
Fix potential shard deadlock issue (#2570)
Browse files Browse the repository at this point in the history
  • Loading branch information
wxing1292 committed Mar 4, 2022
1 parent 9d892c6 commit 6d90f65
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions service/history/shard/context_impl.go
Original file line number Diff line number Diff line change
Expand Up @@ -1472,6 +1472,7 @@ func (s *ContextImpl) loadShardMetadata(ownershipChanged *bool) error {
s.rLock()

if s.state >= contextStateStopping {
s.rUnlock()
return errStoppingContext
}

Expand Down

0 comments on commit 6d90f65

Please # to comment.