/[Apache-SVN]
ViewVC logotype

Revision 1629854


Jump to revision: Previous Next
Author: stefan2
Date: Tue Oct 7 10:41:14 2014 UTC (9 years, 6 months ago)
Changed paths: 2
Log Message:
In FSFS, always use the same function to read the 'current' file.

Apart from the consistency aspect, this no longer lets atoi() mask
'current' file corruptions.  Recovery must be adopted to this.

* subversion/libsvn_fs_fs/fs_fs.c
  (get_youngest): Change signature because we will need the format
                  info as well - not just a repo path.  Call the util
                  function to read and interpret the 'current' file.
  (with_some_lock_file,
   svn_fs_fs__open,
   svn_fs_fs__youngest_rev,
   svn_fs_fs__ensure_revision_exists): Update callers.

* subversion/libsvn_fs_fs/fs.c
  (fs_open_for_recovery): Make sure, a valid 'current' file is available
                          for repository recovery.


Changed paths

Path Details
Directorysubversion/trunk/subversion/libsvn_fs_fs/fs.c modified , text changed
Directorysubversion/trunk/subversion/libsvn_fs_fs/fs_fs.c modified , text changed

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26