Merge pull request #487 from cjoudrey/rm-dead-code-in-migrator
Thank you
This commit is contained in:
commit
b9050222e1
@ -10,10 +10,8 @@ import (
|
|||||||
"io"
|
"io"
|
||||||
"math"
|
"math"
|
||||||
"os"
|
"os"
|
||||||
"os/signal"
|
|
||||||
"strings"
|
"strings"
|
||||||
"sync/atomic"
|
"sync/atomic"
|
||||||
"syscall"
|
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/github/gh-ost/go/base"
|
"github.com/github/gh-ost/go/base"
|
||||||
@ -103,21 +101,6 @@ func NewMigrator() *Migrator {
|
|||||||
return migrator
|
return migrator
|
||||||
}
|
}
|
||||||
|
|
||||||
// acceptSignals registers for OS signals
|
|
||||||
func (this *Migrator) acceptSignals() {
|
|
||||||
c := make(chan os.Signal, 1)
|
|
||||||
|
|
||||||
signal.Notify(c, syscall.SIGHUP)
|
|
||||||
go func() {
|
|
||||||
for sig := range c {
|
|
||||||
switch sig {
|
|
||||||
case syscall.SIGHUP:
|
|
||||||
log.Debugf("Received SIGHUP. Reloading configuration")
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}()
|
|
||||||
}
|
|
||||||
|
|
||||||
// initiateHooksExecutor
|
// initiateHooksExecutor
|
||||||
func (this *Migrator) initiateHooksExecutor() (err error) {
|
func (this *Migrator) initiateHooksExecutor() (err error) {
|
||||||
this.hooksExecutor = NewHooksExecutor()
|
this.hooksExecutor = NewHooksExecutor()
|
||||||
|
Loading…
Reference in New Issue
Block a user