|
@ -392,7 +392,7 @@ func (dec *WALDecoder) Decode() (*TimedWALMessage, error) { |
|
|
return nil, DataCorruptionError{fmt.Errorf("checksums do not match: read: %v, actual: %v", crc, actualCRC)} |
|
|
return nil, DataCorruptionError{fmt.Errorf("checksums do not match: read: %v, actual: %v", crc, actualCRC)} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
var res = new(TimedWALMessage) // nolint: gosimple
|
|
|
|
|
|
|
|
|
var res = new(TimedWALMessage) |
|
|
err = cdc.UnmarshalBinaryBare(data, res) |
|
|
err = cdc.UnmarshalBinaryBare(data, res) |
|
|
if err != nil { |
|
|
if err != nil { |
|
|
return nil, DataCorruptionError{fmt.Errorf("failed to decode data: %v", err)} |
|
|
return nil, DataCorruptionError{fmt.Errorf("failed to decode data: %v", err)} |
|
|