subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stef...@apache.org
Subject svn commit: r1816966 - /subversion/trunk/subversion/libsvn_fs_fs/fs_fs.c
Date Sat, 02 Dec 2017 15:58:46 GMT
Author: stefan2
Date: Sat Dec  2 15:58:46 2017
New Revision: 1816966

URL: http://svn.apache.org/viewvc?rev=1816966&view=rev
Log:
Fix an assertion in 'svnfsfs stats' with pre-v4 FSFS repositories.

* subversion/libsvn_fs_fs/fs_fs.c
  (svn_fs_fs__min_unpacked_rev): MIN_UNPACKED_REV is always well-defined but
                                 updating it is prohibited for non-packable
                                 repos (so we would catch bugs in our logic).

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

Modified: subversion/trunk/subversion/libsvn_fs_fs/fs_fs.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_fs_fs/fs_fs.c?rev=1816966&r1=1816965&r2=1816966&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_fs_fs/fs_fs.c (original)
+++ subversion/trunk/subversion/libsvn_fs_fs/fs_fs.c Sat Dec  2 15:58:46 2017
@@ -1470,7 +1470,10 @@ svn_fs_fs__min_unpacked_rev(svn_revnum_t
 {
   fs_fs_data_t *ffd = fs->fsap_data;
 
-  SVN_ERR(svn_fs_fs__update_min_unpacked_rev(fs, pool));
+  /* Calling this for pre-v4 repos is illegal. */
+  if (ffd->format >= SVN_FS_FS__MIN_PACKED_FORMAT)
+    SVN_ERR(svn_fs_fs__update_min_unpacked_rev(fs, pool));
+
   *min_unpacked = ffd->min_unpacked_rev;
 
   return SVN_NO_ERROR;



Mime
View raw message