subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From danie...@apache.org
Subject svn commit: r1152053 - /subversion/branches/revprop-packing/subversion/libsvn_fs_fs/fs_fs.c
Date Thu, 28 Jul 2011 23:57:51 GMT
Author: danielsh
Date: Thu Jul 28 23:57:50 2011
New Revision: 1152053

URL: http://svn.apache.org/viewvc?rev=1152053&view=rev
Log:
On the revprop-packing branch, fix an assertion.

* subversion/libsvn_fs_fs/fs_fs.c
  (recover_body): Guard a call by the appropriate format number check.

Modified:
    subversion/branches/revprop-packing/subversion/libsvn_fs_fs/fs_fs.c

Modified: subversion/branches/revprop-packing/subversion/libsvn_fs_fs/fs_fs.c
URL: http://svn.apache.org/viewvc/subversion/branches/revprop-packing/subversion/libsvn_fs_fs/fs_fs.c?rev=1152053&r1=1152052&r2=1152053&view=diff
==============================================================================
--- subversion/branches/revprop-packing/subversion/libsvn_fs_fs/fs_fs.c (original)
+++ subversion/branches/revprop-packing/subversion/libsvn_fs_fs/fs_fs.c Thu Jul 28 23:57:50
2011
@@ -7329,7 +7329,8 @@ recover_body(void *baton, apr_pool_t *po
 
   /* Before setting current, verify that there is a revprops file
      for the youngest revision.  (Issue #2992) */
-  SVN_ERR(update_min_unpacked_revprop(fs, pool));
+  if (ffd->format >= SVN_FS_FS__MIN_PACKED_REVPROP_FORMAT)
+    SVN_ERR(update_min_unpacked_revprop(fs, pool));
   if (is_packed_revprop(fs, max_rev))
     /* Possible when min_unpacked_rev == current+1 == max_rev+1. */
     SVN_ERR(svn_io_check_path(path_revprops_pack(fs, max_rev, pool),



Mime
View raw message