Skip to content

Commit

Permalink
domain: revert unintended changes
Browse files Browse the repository at this point in the history
  • Loading branch information
xhebox authored Jul 19, 2021
1 parent 6314233 commit 3b9697b
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 3b9697b

Please sign in to comment.