Skip to content

Commit 00369d7

Browse files
author
Shlomi Noach
committed
relaxed config scanner mode
- does not fail on MySQL 'prompt' config
1 parent 88eb2d6 commit 00369d7

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

go/base/context.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ import (
1818
"github.com/github/gh-ost/go/sql"
1919

2020
"gopkg.in/gcfg.v1"
21+
gcfgscanner "gopkg.in/gcfg.v1/scanner"
2122
)
2223

2324
// RowsEstimateMethod is the type of row number estimation
@@ -507,6 +508,7 @@ func (this *MigrationContext) ReadConfigFile() error {
507508
return nil
508509
}
509510
gcfg.RelaxedParserMode = true
511+
gcfgscanner.RelaxedScannerMode = true
510512
if err := gcfg.ReadFileInto(&this.config, this.ConfigFile); err != nil {
511513
return err
512514
}

vendor/gopkg.in/gcfg.v1/scanner/scanner.go

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)