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 Issue 21627 - macOS: std.stdio.File.sync does not guarantee to be… #7789
Conversation
Thanks for your pull request and interest in making D better, @kubo39! We are looking forward to reviewing it, and you should be hearing from a maintainer soon.
Please see CONTRIBUTING.md for more information. If you have addressed all reviews or aren't sure how to proceed, don't hesitate to ping us with a simple comment. Bugzilla references
Testing this PR locallyIf you don't have a local development environment setup, you can use Digger to test this PR: dub run digger -- build "master + phobos#7789" |
Looking around a bit, it looks like https://www.postgresql.org/message-id/a06010200be3da9564694@%5B17.202.21.231%5D Important bit:
and https://news.ycombinator.com/item?id=6792669
So, it looks like there is no equivalent to Whatever we choose to do, we should document that as the intent of the function, so that it can be updated consistently with new APIs / platforms. One of two things:
Finally, there is the question if there are circumstances where D programs wouldn't want to use |
The one circumstance I can think of is if power loss to the storage device is believed to be impossible. Are there others? |
5e3190b
to
0b95ade
Compare
0b95ade
to
f0f1990
Compare
@@ -982,7 +986,9 @@ Call $(LREF flush) before calling this function to flush the C `FILE` buffers fi | |||
|
|||
This function calls | |||
$(HTTP msdn.microsoft.com/en-us/library/windows/desktop/aa364439%28v=vs.85%29.aspx, | |||
`FlushFileBuffers`) on Windows and | |||
`FlushFileBuffers`) on Windows, | |||
$(HTTP developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man2/fcntl.2.html, |
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.
This link does not exist
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.
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.
Hmm, it works now. I must have had a connection issue.
At the minimum, I think that we should specify that |
Not sure if that's how you meant it, but just in case I'll clarify that it already does (the text says "..., |
… written to disk