Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
amelius
15 days ago
|
parent
|
context
|
favorite
| on:
Disks Lie: Building a WAL that actually survives
Then how do you know the writes are done after the second sync?
wmf
15 days ago
[–]
AFAIK multiple syncs can't happen at the same time so the second sync implicitly waits for the first one to complete.
amelius
15 days ago
|
parent
[–]
If it was that simple, then why doesn't sync just do 2x sync internally?
wakawaka28
15 days ago
|
root
|
parent
|
next
[–]
If I had to guess, it is just extra work to do it twice, and you may not need to wait for it for some use cases. The better way would be to add a flag or alternative function to make the sync a blocking operation in the first place.
wmf
15 days ago
|
root
|
parent
|
prev
[–]
Why is creat() missing the e? Why does an FTP server connect back to the client?
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: