On Fri, Jul 22, 2016 at 3:40 AM, Manlio Perillo
<manlio.peri...@gmail.com> wrote:
>
> I think your reasoning is wrong.
> WriteFile is a "self contained" function; it does not return the handle to
> the file, so it can not be used inside a transaction.
> I really don't see valid reasons to not call Sync.

WriteFile is a convenience function that can be broken down into a
series of steps.  Sync is a special purpose operation.  Normal file
I/O does not call Sync at any point.  It would be very surprising if
WriteFile called Sync.  If you want to do an operation like WriteFile
and call Sync, then break it down to the component steps yourself,
rather than using WriteFile, and call Sync yourself.

Ian

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to