/[Apache-SVN]
ViewVC logotype

Revision 1683378


Jump to revision: Previous Next
Author: ivan
Date: Wed Jun 3 15:48:35 2015 UTC (8 years, 10 months ago)
Changed paths: 2
Log Message:
Prevent a possible FSFS repository corruption with power or network disk
failures during 'svnadmin pack'.

* subversion/libsvn_fs_fs/pack.c
  (close_pack_context): Call svn_io_file_flush_to_disk() for pack file.
  (pack_phys_addressed): Use svn_io_file_open() to open pack and manifest 
   file and call svn_io_file_flush_to_disk() before closing them.

* subversion/libsvn_fs_fs/revprops.c
  (svn_fs_fs__copy_revprops): Use apr_file_t to write pack file and flush
   changes to disk before close.
  (svn_fs_fs__pack_revprops_shard): Use svn_io_file_open() to packed revision
   properties manifest file and call svn_io_file_flush_to_disk()
   before closing it.


Changed paths

Path Details
Directorysubversion/trunk/subversion/libsvn_fs_fs/pack.c modified , text changed
Directorysubversion/trunk/subversion/libsvn_fs_fs/revprops.c modified , text changed

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26