You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We assume the WriteAheadLog dependency is simple and is able to Truncate only the whole log.
Therefore, we actually use two WAL files to ensure the ability of erasing a certain prefix of the WAL in a safe manner.
We copy the data that we want to keep to a second WAL, and after it has all been successfully written we truncate the first WAL.
By doing so we get rid of the unwanted prefix while maintaining the rest of the data.