subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stef...@apache.org
Subject svn commit: r1785904 - /subversion/trunk/subversion/libsvn_fs_fs/stats.c
Date Tue, 07 Mar 2017 22:52:46 GMT
Author: stefan2
Date: Tue Mar  7 22:52:45 2017
New Revision: 1785904

URL: http://svn.apache.org/viewvc?rev=1785904&view=rev
Log:
Follow-up to r1785754:
svnfsfs did not make sure to compensate for the quirks in PLAIN
representations created by older releases.  The revision above
uncovered this hidden issue, causing checksum errors.

* subversion/libsvn_fs_fs/stats.c
  (read_noderev): Ensure that EXPANDED_SIZE is always valid.

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=1785904&r1=1785903&r2=1785904&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_fs_fs/stats.c (original)
+++ subversion/trunk/subversion/libsvn_fs_fs/stats.c Tue Mar  7 22:52:45 2017
@@ -617,6 +617,10 @@ read_noderev(query_t *query,
   svn_stream_t *stream = svn_stream_from_stringbuf(noderev_str, scratch_pool);
   SVN_ERR(svn_fs_fs__read_noderev(&noderev, stream, scratch_pool,
                                   scratch_pool));
+  SVN_ERR(svn_fs_fs__fixup_expanded_size(query->fs, noderev->data_rep,
+                                         scratch_pool));
+  SVN_ERR(svn_fs_fs__fixup_expanded_size(query->fs, noderev->prop_rep,
+                                         scratch_pool));
 
   if (noderev->data_rep)
     {



Mime
View raw message