Author: stefan2
Date: Mon Dec  2 16:10:54 2013
New Revision: 1547079

URL: http://svn.apache.org/r1547079
Log:
Fix FSFS format 7 commit on Windows.

* subversion/libsvn_fs_fs/index.c
  (svn_fs_fs__l2p_index_create,
   svn_fs_fs__p2l_index_create): Close proto-index file handles right after
                                 usage such that we can delete the txn dir
                                 on Windows.

Modified:
    subversion/trunk/subversion/libsvn_fs_fs/index.c

Modified: subversion/trunk/subversion/libsvn_fs_fs/index.c
URL: 
http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_fs_fs/index.c?rev=1547079&r1=1547078&r2=1547079&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_fs_fs/index.c (original)
+++ subversion/trunk/subversion/libsvn_fs_fs/index.c Mon Dec  2 16:10:54 2013
@@ -628,6 +628,9 @@ svn_fs_fs__l2p_index_create(svn_fs_t *fs
         }
     }
 
+  /* close the source file */
+  SVN_ERR(svn_io_file_close(proto_index, local_pool));
+
   /* create the target file */
   SVN_ERR(svn_io_file_open(&index_file, file_name, APR_WRITE
                            | APR_CREATE | APR_TRUNCATE | APR_BUFFERED,
@@ -1661,6 +1664,9 @@ svn_fs_fs__p2l_index_create(svn_fs_t *fs
       last_entry_end = entry_end;
     }
 
+  /* close the source file */
+  SVN_ERR(svn_io_file_close(proto_index, local_pool));
+
   /* store length of last table */
   APR_ARRAY_PUSH(table_sizes, apr_uint64_t)
       = svn_spillbuf__get_size(buffer) - last_buffer_size;


Reply via email to