Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
fix: nil pointer (#2948)
Yilong Li7a2e04ccb8fa
diff --git a/plugin/db/mysql/restore.go b/plugin/db/mysql/restore.goindex 639c6c425e..cfb365ca81 100644--- a/plugin/db/mysql/restore.go+++ b/plugin/db/mysql/restore.go@@ -856,7 +856,7 @@ func (driver *Driver) getBinlogCoordinateByTs(ctx context.Context, targetTs int6for i, meta := range metaList {if meta.FirstEventTs >= targetTs {if i == 0 {- return nil, errors.Errorf("the targetTs %d is before the first event ts %d of the oldest binlog file %q", targetTs, meta.FirstEventTs, targetMeta.binlogName)+ return nil, errors.Errorf("the targetTs %d is before the first event ts %d of the oldest binlog file %q", targetTs, meta.FirstEventTs, metaList[0].binlogName)}// The previous local binlog file contains targetTs.targetMeta = &metaList[i-1]