subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stef...@apache.org
Subject svn commit: r1639436 - /subversion/trunk/subversion/libsvn_fs_fs/stats.c
Date Thu, 13 Nov 2014 18:35:13 GMT
Author: stefan2
Date: Thu Nov 13 18:35:13 2014
New Revision: 1639436

URL: http://svn.apache.org/r1639436
Log:
Follow-up to r1639319: Fix file object lifetime.

* subversion/libsvn_fs_fs/stats.c
  (read_phys_pack_file): Close rev / pack file only at the end of the
                         pack file.

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

Modified: subversion/trunk/subversion/libsvn_fs_fs/stats.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_fs_fs/stats.c?rev=1639436&r1=1639435&r2=1639436&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_fs_fs/stats.c (original)
+++ subversion/trunk/subversion/libsvn_fs_fs/stats.c Thu Nov 13 18:35:13 2014
@@ -768,7 +768,6 @@ read_phys_pack_file(query_t *query,
       info->representations = apr_array_copy(pool, info->representations);
 
       /* Done with this revision. */
-      SVN_ERR(svn_fs_fs__close_revision_file(rev_file));
       info->rev_file = NULL;
 
       /* put it into our container */
@@ -778,6 +777,9 @@ read_phys_pack_file(query_t *query,
       svn_pool_clear(iterpool);
     }
 
+  /* Done with this pack file. */
+  SVN_ERR(svn_fs_fs__close_revision_file(rev_file));
+
   /* one more pack file processed */
   if (query->progress_func)
     query->progress_func(base, query->progress_baton, local_pool);



Mime
View raw message