-
Notifications
You must be signed in to change notification settings - Fork 41
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
fix: ensure writes are always atomic #97
Conversation
6a8f787
to
61c4bb8
Compare
why did you close this? |
missing tests |
There is one problem here. We can still write larger than |
This is the case of pino. |
So this PR is not sufficient. |
@mcollina PTAL, doesn't pass tests but I think this could potentially work. |
Agreed, this is quite nice actually |
passes all tests except for |
I'm getting a lot of failures while running your branch locally.
|
Should be better now. Sorry about that. |
the |
I can see some slowdown but it seems acceptable to solve this problem: This branch:
master:
We can see if there are a few areas were we could optimize. |
The following fixes the broken test:
Essentially the |
Thanks! Fixed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Fixes: #96