Skip to content

Commit

Permalink
domain: fix empty mvcc info (#42745)
Browse files Browse the repository at this point in the history
close #42742
  • Loading branch information
xhebox authored Apr 3, 2023
1 parent 3eff64a commit acc45a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion domain/domain.go
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ func (do *Domain) getTimestampForSchemaVersionWithNonEmptyDiff(m *meta.Meta, ver
if err != nil {
return 0, err
}
if len(data.Info.Writes) == 0 {
if data == nil || data.Info == nil || len(data.Info.Writes) == 0 {
return 0, errors.Errorf("There is no Write MVCC info for the schema version")
}
return int64(data.Info.Writes[0].CommitTs), nil
Expand Down

0 comments on commit acc45a1

Please sign in to comment.