var ErrCRCMismatch … func (rec *Record) Validate(crc uint32) error { … } // ValidateSnapshotForWrite ensures the Snapshot the newly written snapshot is valid. // // There might exist log-entries written by old etcd versions that does not conform // to the requirements. func ValidateSnapshotForWrite(e *Snapshot) error { … }