Skip to content

Commit

Permalink
Propagate error when journal record can't be validated
Browse files Browse the repository at this point in the history
  • Loading branch information
macneale4 committed Oct 1, 2024
1 parent 0612097 commit e8787da
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions go/store/nbs/journal_record.go
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,7 @@ func processJournalRecords(ctx context.Context, r io.ReadSeeker, off int64, cb f
}

if !validateJournalRecord(buf) {
err = fmt.Errorf("failed to validate journal record at %d", off)
break // stop if we can't validate |rec|
}

Expand Down

0 comments on commit e8787da

Please sign in to comment.