You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by st...@apache.org on 2017/03/07 22:52:46 UTC

svn commit: r1785904 - /subversion/trunk/subversion/libsvn_fs_fs/stats.c

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)
     {