Merge 09289062a4
into 0a033c76c1
This commit is contained in:
commit
89f390406d
|
@ -10,6 +10,7 @@ import (
|
|||
"fmt"
|
||||
"strings"
|
||||
"sync"
|
||||
"sync/atomic"
|
||||
"time"
|
||||
|
||||
"github.com/github/gh-ost/go/base"
|
||||
|
@ -215,5 +216,8 @@ func (this *EventsStreamer) Close() (err error) {
|
|||
}
|
||||
|
||||
func (this *EventsStreamer) Teardown() {
|
||||
this.migrationContext.Log.Debugf("Tearing down...")
|
||||
this.db.Close()
|
||||
this.Close()
|
||||
atomic.StoreInt64(&this.migrationContext.CutOverCompleteFlag, 1)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user