Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add function to fully clear wal file #29

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

DStrand1
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