Skip to content

Conversation

@mstrandboge
Copy link

Adds a new function to fully clear the log file, as well as cleaning up any segment files on disk.

Closes #20

@tidwall
Copy link
Owner

tidwall commented Nov 15, 2024

You have the os.Remove of each segment, but if one of those operations fails, after the first, then the wal may be left in a corrupted state.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

How to truncate entire log?

2 participants