subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From i...@apache.org
Subject svn commit: r1683553 - /subversion/trunk/subversion/libsvn_fs_fs/verify.c
Date Thu, 04 Jun 2015 14:08:43 GMT
Author: ivan
Date: Thu Jun  4 14:08:42 2015
New Revision: 1683553

URL: http://svn.apache.org/r1683553
Log:
Follow-up to r1683544: Fix svn_fs_verify(0, SVN_INVALID_REVNUM) for FSFS
repositories.

* subversion/libsvn_fs_fs/verify.c
  (svn_fs_fs__verify): Read current file to obtain youngest revision
   instead of relying that ffd->youngest_rev_cache contains actual value.

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

Modified: subversion/trunk/subversion/libsvn_fs_fs/verify.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_fs_fs/verify.c?rev=1683553&r1=1683552&r2=1683553&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_fs_fs/verify.c (original)
+++ subversion/trunk/subversion/libsvn_fs_fs/verify.c Thu Jun  4 14:08:42 2015
@@ -851,13 +851,15 @@ svn_fs_fs__verify(svn_fs_t *fs,
                   apr_pool_t *pool)
 {
   fs_fs_data_t *ffd = fs->fsap_data;
-  svn_revnum_t youngest = ffd->youngest_rev_cache; /* cache is current */
 
   /* Input validation. */
   if (! SVN_IS_VALID_REVNUM(start))
     start = 0;
   if (! SVN_IS_VALID_REVNUM(end))
-    end = youngest;
+    {
+      SVN_ERR(svn_fs_fs__youngest_rev(&end, fs, pool));
+    }
+
   SVN_ERR(svn_fs_fs__ensure_revision_exists(start, fs, pool));
   SVN_ERR(svn_fs_fs__ensure_revision_exists(end, fs, pool));
 



Mime
View raw message