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 2015/10/21 15:30:14 UTC

svn commit: r1709831 - /subversion/trunk/subversion/libsvn_fs_x/transaction.c

Author: stefan2
Date: Wed Oct 21 13:30:14 2015
New Revision: 1709831

URL: http://svn.apache.org/viewvc?rev=1709831&view=rev
Log:
Make FSX tests pass again.

* subversion/libsvn_fs_x/transaction.c
  (write_container_delta_rep): Be sure to always set the expanded fulltext
                               size before comparing the rep with one from
                               rep-cache.db.

Modified:
    subversion/trunk/subversion/libsvn_fs_x/transaction.c

Modified: subversion/trunk/subversion/libsvn_fs_x/transaction.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_fs_x/transaction.c?rev=1709831&r1=1709830&r2=1709831&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_fs_x/transaction.c (original)
+++ subversion/trunk/subversion/libsvn_fs_x/transaction.c Wed Oct 21 13:30:14 2015
@@ -2795,6 +2795,7 @@ write_container_delta_rep(svn_fs_x__repr
 
   /* Store the results. */
   SVN_ERR(digests_final(rep, whb->md5_ctx, whb->sha1_ctx, scratch_pool));
+  rep->expanded_size = whb->size;
 
   /* Check and see if we already have a representation somewhere that's
      identical to the one we just wrote out. */
@@ -2838,7 +2839,6 @@ write_container_delta_rep(svn_fs_x__repr
       SVN_ERR(store_p2l_index_entry(fs, txn_id, &entry, scratch_pool));
 
       /* update the representation */
-      rep->expanded_size = whb->size;
       rep->size = rep_end - delta_start;
     }