Browse Source

data is corrupted, but this requires manual intervention

i.e., can't be skipped

and we should only return DataCorruptionError if we can skip a msg safely
pull/1607/head
Anton Kaliaev 6 years ago
parent
commit
68f6226bea
No known key found for this signature in database GPG Key ID: 7B6881D965918214
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      consensus/wal.go

+ 1
- 1
consensus/wal.go View File

@ -282,7 +282,7 @@ func (dec *WALDecoder) Decode() (*TimedWALMessage, error) {
length := binary.BigEndian.Uint32(b)
if length > maxMsgSizeBytes {
return nil, DataCorruptionError{fmt.Errorf("length %d exceeded maximum possible value of %d bytes", length, maxMsgSizeBytes)}
return nil, fmt.Errorf("length %d exceeded maximum possible value of %d bytes", length, maxMsgSizeBytes)
}
data := make([]byte, length)


Loading…
Cancel
Save