File tree Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
#
3
3
#
4
- RELEASE_VERSION=" 0.9.0 "
4
+ RELEASE_VERSION=" 0.9.1 "
5
5
6
6
buildpath=/tmp/gh-ost
7
7
target=gh-ost
Original file line number Diff line number Diff line change @@ -558,6 +558,17 @@ func (this *Applier) StopSlaveIOThread() error {
558
558
return nil
559
559
}
560
560
561
+ // StartSlaveSQLThread is applicable with --test-on-replica
562
+ func (this * Applier ) StopSlaveSQLThread () error {
563
+ query := `stop /* gh-ost */ slave sql_thread`
564
+ log .Infof ("Verifying SQL thread is stopped" )
565
+ if _ , err := sqlutils .ExecNoPrepare (this .db , query ); err != nil {
566
+ return err
567
+ }
568
+ log .Infof ("SQL thread stopped" )
569
+ return nil
570
+ }
571
+
561
572
// StartSlaveSQLThread is applicable with --test-on-replica
562
573
func (this * Applier ) StartSlaveSQLThread () error {
563
574
query := `start /* gh-ost */ slave sql_thread`
@@ -573,7 +584,7 @@ func (this *Applier) StopSlaveNicely() error {
573
584
if err := this .StopSlaveIOThread (); err != nil {
574
585
return err
575
586
}
576
- if err := this .StartSlaveSQLThread (); err != nil {
587
+ if err := this .StopSlaveSQLThread (); err != nil {
577
588
return err
578
589
}
579
590
readBinlogCoordinates , executeBinlogCoordinates , err := mysql .GetReplicationBinlogCoordinates (this .db )
You can’t perform that action at this time.
0 commit comments