subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stef...@apache.org
Subject svn commit: r1445056 - /subversion/branches/fsfs-format7/subversion/libsvn_fs_fs/pack.c
Date Tue, 12 Feb 2013 08:25:22 GMT
Author: stefan2
Date: Tue Feb 12 08:25:21 2013
New Revision: 1445056

URL: http://svn.apache.org/r1445056
Log:
On the fsfs-format7 branch:  keep internal and external state in sync
(will be needed for debugging purposes shortly)

* subversion/libsvn_fs_fs/pack.c
  (pack_shard): update ffd state immediately after packing a shard

Modified:
    subversion/branches/fsfs-format7/subversion/libsvn_fs_fs/pack.c

Modified: subversion/branches/fsfs-format7/subversion/libsvn_fs_fs/pack.c
URL: http://svn.apache.org/viewvc/subversion/branches/fsfs-format7/subversion/libsvn_fs_fs/pack.c?rev=1445056&r1=1445055&r2=1445056&view=diff
==============================================================================
--- subversion/branches/fsfs-format7/subversion/libsvn_fs_fs/pack.c (original)
+++ subversion/branches/fsfs-format7/subversion/libsvn_fs_fs/pack.c Tue Feb 12 08:25:21 2013
@@ -1133,6 +1133,7 @@ pack_shard(const char *revs_dir,
            void *cancel_baton,
            apr_pool_t *pool)
 {
+  fs_fs_data_t *ffd = fs->fsap_data;
   const char *rev_shard_path, *rev_pack_file_dir;
   const char *revprops_shard_path, *revprops_pack_file_dir;
 
@@ -1175,12 +1176,11 @@ pack_shard(const char *revs_dir,
                                   cancel_func, cancel_baton, pool));
     }
 
-  /* Update the min-unpacked-rev file to reflect our newly packed shard.
-   * (This doesn't update ffd->min_unpacked_rev.  That will be updated by
-   * update_min_unpacked_rev() when necessary.) */
+  /* Update the min-unpacked-rev file to reflect our newly packed shard. */
   SVN_ERR(write_revnum_file(fs,
                             (svn_revnum_t)((shard + 1) * max_files_per_dir),
                             pool));
+  ffd->min_unpacked_rev = (svn_revnum_t)((shard + 1) * max_files_per_dir);
 
   /* Finally, remove the existing shard directories. */
   SVN_ERR(svn_io_remove_dir2(rev_shard_path, TRUE,



Mime
View raw message