Author: stefan2
Date: Fri Oct 30 00:20:41 2015
New Revision: 1711390
URL: http://svn.apache.org/viewvc?rev=1711390&view=rev
Log:
Eliminate yet another fsync call from the FSX repository creation sequence.
* subversion/libsvn_fs_x/fs_x.c
(svn_fs_x__create_file_tree): Create the rather trivial 'current' file
just like we create the 'min-unpacked-rev'
file.
Modified:
subversion/trunk/subversion/libsvn_fs_x/fs_x.c
Modified: subversion/trunk/subversion/libsvn_fs_x/fs_x.c
URL:
http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_fs_x/fs_x.c?rev=1711390&r1=1711389&r2=1711390&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_fs_x/fs_x.c (original)
+++ subversion/trunk/subversion/libsvn_fs_x/fs_x.c Fri Oct 30 00:20:41 2015
@@ -967,9 +967,8 @@ svn_fs_x__create_file_tree(svn_fs_t *fs,
scratch_pool));
/* Create the 'current' file. */
- SVN_ERR(svn_io_file_create_empty(svn_fs_x__path_current(fs, scratch_pool),
- scratch_pool));
- SVN_ERR(svn_fs_x__write_current(fs, 0, scratch_pool));
+ SVN_ERR(svn_io_file_create(svn_fs_x__path_current(fs, scratch_pool),
+ "0\n", scratch_pool));
/* Create the 'uuid' file. */
SVN_ERR(svn_io_file_create_empty(svn_fs_x__path_lock(fs, scratch_pool),