We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents fd42ccf + e3662f2 commit 75d2253Copy full SHA for 75d2253
go/logic/migrator.go
@@ -408,7 +408,9 @@ func (this *Migrator) cutOver() (err error) {
408
// the same cut-over phase as the master would use. That means we take locks
409
// and swap the tables.
410
// The difference is that we will later swap the tables back.
411
- this.hooksExecutor.onStopReplication()
+ if err := this.hooksExecutor.onStopReplication(); err != nil {
412
+ return err
413
+ }
414
if this.migrationContext.TestOnReplicaSkipReplicaStop {
415
log.Warningf("--test-on-replica-skip-replica-stop enabled, we are not stopping replication.")
416
} else {
0 commit comments