caetanosauer / zero

Fork of the Shore-MT storage manager used by the research project Instant Recovery
Other
29 stars 10 forks source link

Log archiver block size can only be specified at creation time #9

Open caetanosauer opened 9 years ago

caetanosauer commented 9 years ago

Current code allows the block size to be passed to the constructor of each LogArchiver component. However, if we try to open an archive with an incompatible block size, things will go wrong. Changing the block size while a run is being generated is also not possible.

As a solution, each run file could include the block size as header information. To make our live easier, we could enforce that all runu files have the same block size. Furthermore, a block size passed to the constructor should only be used if the archive is empty.