@@ -18,10 +18,11 @@ var (
18
18
execution = flag .String ("exec" , "" , "mysqldump/mariadb-dump execution path" )
19
19
output = flag .String ("o" , "" , "dump output, empty for stdout" )
20
20
21
- dbs = flag .String ("dbs" , "" , "dump databases, separated by comma" )
22
- tables = flag .String ("tables" , "" , "dump tables, separated by comma, will overwrite dbs" )
23
- tableDB = flag .String ("table_db" , "" , "database for dump tables" )
24
- ignoreTables = flag .String ("ignore_tables" , "" , "ignore tables, must be database.table format, separated by comma" )
21
+ dbs = flag .String ("dbs" , "" , "dump databases, separated by comma" )
22
+ tables = flag .String ("tables" , "" , "dump tables, separated by comma, will overwrite dbs" )
23
+ tableDB = flag .String ("table_db" , "" , "database for dump tables" )
24
+ ignoreTables = flag .String ("ignore_tables" , "" , "ignore tables, must be database.table format, separated by comma" )
25
+ skipBinlogPos = flag .Bool ("skip-binlog-pos" , false , "skip fetching binlog position via --master-data/--source-data" )
25
26
)
26
27
27
28
func main () {
@@ -33,6 +34,8 @@ func main() {
33
34
os .Exit (1 )
34
35
}
35
36
37
+ d .SkipMasterData (* skipBinlogPos )
38
+
36
39
if len (* ignoreTables ) > 0 {
37
40
subs := strings .Split (* ignoreTables , "," )
38
41
for _ , sub := range subs {
0 commit comments