You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by st...@apache.org on 2014/10/07 12:45:15 UTC
svn commit: r1629855 - /subversion/trunk/subversion/libsvn_fs_fs/fs_fs.c
Author: stefan2
Date: Tue Oct 7 10:45:15 2014
New Revision: 1629855
URL: http://svn.apache.org/r1629855
Log:
Use the same function to initialize the FSFS 'current' file that we
use to update it.
* subversion/libsvn_fs_fs/fs_fs.c
(svn_fs_fs__create): Manually create the file and then use the util
function to write its content.
Modified:
subversion/trunk/subversion/libsvn_fs_fs/fs_fs.c
Modified: subversion/trunk/subversion/libsvn_fs_fs/fs_fs.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_fs_fs/fs_fs.c?rev=1629855&r1=1629854&r2=1629855&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_fs_fs/fs_fs.c (original)
+++ subversion/trunk/subversion/libsvn_fs_fs/fs_fs.c Tue Oct 7 10:45:15 2014
@@ -1763,10 +1763,10 @@ svn_fs_fs__create(svn_fs_t *fs,
pool));
/* Create the 'current' file. */
- SVN_ERR(svn_io_file_create(svn_fs_fs__path_current(fs, pool),
- (format >= SVN_FS_FS__MIN_NO_GLOBAL_IDS_FORMAT
- ? "0\n" : "0 1 1\n"),
- pool));
+ SVN_ERR(svn_io_file_create_empty(svn_fs_fs__path_current(fs, pool), pool));
+ SVN_ERR(svn_fs_fs__write_current(fs, 0, 1, 1, pool));
+
+ /* Create the 'uuid' file. */
SVN_ERR(svn_io_file_create_empty(svn_fs_fs__path_lock(fs, pool), pool));
SVN_ERR(svn_fs_fs__set_uuid(fs, NULL, NULL, pool));