Skip to content

Commit

Permalink
domain: revert unintended changes (#26341)
Browse files Browse the repository at this point in the history
  • Loading branch information
xhebox authored Jul 19, 2021
1 parent 32bf0c4 commit 672f3fa
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions domain/domain.go
Original file line number Diff line number Diff line change
Expand Up @@ -622,11 +622,10 @@ func (do *Domain) Close() {
terror.Log(errors.Trace(do.etcdClient.Close()))
}

do.sysSessionPool.Close()
do.slowQuery.Close()

do.cancel()
do.wg.Wait()
do.sysSessionPool.Close()
logutil.BgLogger().Info("domain closed", zap.Duration("take time", time.Since(startTime)))
}

Expand Down

0 comments on commit 672f3fa

Please sign in to comment.