Checkout
Ivan Zhakov
committed
on 15 Sep 15
Implement svn_io_write_atomic2() with FLUSH_TO_DISK flag to control whether
wait or not until file is actually written to disk. The old
svn_… Show more
Implement svn_io_write_atomic2() with FLUSH_TO_DISK flag to control whether

wait or not until file is actually written to disk. The old

svn_io_write_atomic() was flushing data to disk unconditionally.

* subversion/include/svn_io.h

 (svn_io_write_atomic2): New function declaration.

 (svn_io_write_atomic): Deprecate.

* subversion/libsvn_subr/io.c

 (svn_io_write_atomic2): Revv from svn_io_write_atomic() Add FLUSH_TO_DISK

  parameter and perform flush to disk only if FLUSH_TO_DISK is non-zero.

* subversion/libsvn_subr/deprecated.c

 (svn_io_write_atomic): Call svn_io_write_atomic2() with FLUSH_TO_DISK=TRUE.

* subversion/libsvn_fs_fs/fs_fs.c

* subversion/libsvn_fs_fs/transaction.c

* subversion/libsvn_fs_fs/util.c

* subversion/libsvn_fs_x/fs_x.c

* subversion/libsvn_fs_x/revprops.c

* subversion/libsvn_fs_x/util.c

* subversion/libsvn_wc/workqueue.c

* subversion/mod_dav_svn/activity.c

* subversion/tests/libsvn_fs_fs/fs-fs-pack-test.c

* subversion/tests/libsvn_fs_x/fs-x-pack-test.c

* subversion/tests/libsvn_repos/repos-test.c

 (*): Use svn_io_write_atomic2() with FLUSH_TO_DISK=TRUE instead of

      svn_io_write_atomic().

Show less