Currently the WAL recovery code assumes all entries will pass the Crc check but that isn't necessarily the case if only some of the data of the last write made it to disk during an unclean shutdown.
If an entry is the last entry in the wal and it fails the Crc we should just discard it and continue with the WAL recovery phase.
Currently the WAL recovery code assumes all entries will pass the Crc check but that isn't necessarily the case if only some of the data of the last write made it to disk during an unclean shutdown.
If an entry is the last entry in the wal and it fails the Crc we should just discard it and continue with the WAL recovery phase.