Skip to content

Commit 1378868

Browse files
committed
removing sql_bin_log=0
1 parent 104347f commit 1378868

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

go/logic/applier.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -643,10 +643,10 @@ func (this *Applier) ApplyIterationInsertQuery() (chunkSize int64, rowsAffected
643643
fmt.Sprintf("failed to get connection")
644644
return nil, err
645645
}
646-
if _, err := conn.ExecContext(context.Background(), "SET @@SESSION.sql_log_bin=0"); err != nil {
647-
fmt.Sprintf("failed to disable binary logs")
648-
return nil, err
649-
}
646+
// if _, err := conn.ExecContext(context.Background(), "SET @@SESSION.sql_log_bin=0"); err != nil {
647+
// fmt.Sprintf("failed to disable binary logs")
648+
// return nil, err
649+
// }
650650
tx, err := conn.BeginTx(context.Background(), nil)
651651
if err != nil {
652652
return nil, err
@@ -666,10 +666,10 @@ func (this *Applier) ApplyIterationInsertQuery() (chunkSize int64, rowsAffected
666666
if err := tx.Commit(); err != nil {
667667
return nil, err
668668
}
669-
if _, err := conn.ExecContext(context.Background(), "SET @@SESSION.sql_log_bin=1"); err != nil {
670-
fmt.Sprintf("failed to enable binary logs")
671-
return nil, err
672-
}
669+
// if _, err := conn.ExecContext(context.Background(), "SET @@SESSION.sql_log_bin=1"); err != nil {
670+
// fmt.Sprintf("failed to enable binary logs")
671+
// return nil, err
672+
// }
673673
conn.Close()
674674
return result, nil
675675
}()

0 commit comments

Comments
 (0)