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

ethdb/pebble: use consistent write option for pebble update #29113

Closed
wants to merge 1 commit into from

Conversation

will-2012
Copy link

@will-2012 will-2012 commented Feb 28, 2024

Keep a consistent write option with put/delete/batch-write.

@karalabe
Copy link
Member

This is almost certainly wrong. There are reasons why certain flags are used in certain places and just blindly updating it with no rational is almost surely wrong.

@will-2012 will-2012 closed this Feb 28, 2024
@will-2012
Copy link
Author

will-2012 commented Feb 28, 2024

I think nil defaults to non-sync mode, and the adjustment is to use writeoption, which generally only has stronger consistency guarantees. Currently, sync mode is used by default elsewhere to ensure stronger consistency(fsync is now enabled for pebble database writes (#27615, #27522)). Is this the only place that is not in sync mode to improve performance?

I will close this PR for now~ :)

@will-2012 will-2012 reopened this Feb 28, 2024
@will-2012 will-2012 closed this Feb 28, 2024
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.

None yet

2 participants