sync (fsync to the OS) tells the OS to make sure everything associated
with that file is moved to stable storage in the IO system. (It
doesn't read anything back).
On flush we write the files to disk, which is usually very fast since
it writes into the OS's RAM write cache, but we do not sync.
s
Thanks very much for your patience!
Nor are the files "sync"'d.?It means something like reading disk file to RAM,so
reader can see it?
And why flushing(reopen) is much faster than commit? flushing means writing
stuff to disk, commit means writing stuff to disk and then reading the new
created di