Skip to content

Commit

Permalink
Add logutil.LogPanic
Browse files Browse the repository at this point in the history
Signed-off-by: JmPotato <[email protected]>
  • Loading branch information
JmPotato committed Jul 5, 2023
1 parent e36a216 commit 9995f88
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/tso/keyspace_group_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -1364,6 +1364,7 @@ func (kgm *KeyspaceGroupManager) mergingChecker(ctx context.Context, mergeTarget
// groupSplitPatroller is used to patrol the groups that are in the on-going
// split state and to check if we could speed up the split process.
func (kgm *KeyspaceGroupManager) groupSplitPatroller() {
defer logutil.LogPanic()
defer kgm.wg.Done()
patrolInterval := groupPatrolInterval
failpoint.Inject("fastGroupSplitPatroller", func() {
Expand Down Expand Up @@ -1409,6 +1410,7 @@ func (kgm *KeyspaceGroupManager) groupSplitPatroller() {
// deletedGroupCleaner is used to clean the deleted keyspace groups related data.
// For example, the TSO keys of the merged keyspace groups remain in the storage.
func (kgm *KeyspaceGroupManager) deletedGroupCleaner() {
defer logutil.LogPanic()
defer kgm.wg.Done()
patrolInterval := groupPatrolInterval
failpoint.Inject("fastDeletedGroupCleaner", func() {
Expand Down

0 comments on commit 9995f88

Please sign in to comment.