Skip to content

Conversation

crwen
Copy link
Contributor

@crwen crwen commented May 29, 2025

In #295 , we open manifest file with truncate option because only truncate mode is supported by S3.

But when open file with truncate mode, the content will be clear. So I think we can remove the truncate option for now. For S3 case, we can wait for #327 . If you think this is ok I'll pull another PR to fix this problem in wal.

@crwen crwen requested a review from ethe May 29, 2025 13:00
@@ -259,7 +259,7 @@ where
guard.current = Arc::new(new_version);

drop(guard);
if edit_len >= option.version_log_snapshot_threshold {
if edit_len >= option.version_log_snapshot_threshold || is_recover {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's better to rewrite manifest file when open db. If you don't think so, I'll remove this change

@ethe ethe merged commit 6e4eeca into main Jun 4, 2025
21 checks passed
@ethe ethe deleted the fix/recover branch June 4, 2025 05:07
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.

2 participants