Details
Description
> I was just thinking that a Prevayler-generated terminating
> signature would be enough to ensure that
> everything we think we serialized already made it to disk.
> To get specific, just have Prevayler serialize an incrementing
> integer after each command.
>
> Dave Roberts
Issue Links
- relates to
-
PRV-22
Unified "Serializer" interface
-
The chunked encoding implemented for
PRV-22accomplishes this, though slightly differently than suggested here. Each transaction is preceded by its size in bytes and followed by a CRLF pair, so if either not enough bytes remain in the file, or the bytes are not followed by CRLF, we know the transaction was not written fully.