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 2013/06/08 13:29:19 UTC

svn commit: r1490961 - /subversion/branches/fsfs-format7/subversion/libsvn_fs_fs/cached_data.c

Author: stefan2
Date: Sat Jun  8 11:29:18 2013
New Revision: 1490961

URL: http://svn.apache.org/r1490961
Log:
On the fsfs-format7 branch: fix the size calculation for plain reps.

* subversion/libsvn_fs_fs/cached_data.c
  (svn_fs_fs__get_representation_length): negation was a leftover of the
                                          flag-based code

Modified:
    subversion/branches/fsfs-format7/subversion/libsvn_fs_fs/cached_data.c

Modified: subversion/branches/fsfs-format7/subversion/libsvn_fs_fs/cached_data.c
URL: http://svn.apache.org/viewvc/subversion/branches/fsfs-format7/subversion/libsvn_fs_fs/cached_data.c?rev=1490961&r1=1490960&r2=1490961&view=diff
==============================================================================
--- subversion/branches/fsfs-format7/subversion/libsvn_fs_fs/cached_data.c (original)
+++ subversion/branches/fsfs-format7/subversion/libsvn_fs_fs/cached_data.c Sat Jun  8 11:29:18 2013
@@ -1801,7 +1801,7 @@ svn_fs_fs__get_representation_length(svn
   /* RS->FILE may be shared between RS instances -> make sure we point
    * to the right data. */
   *packed_len = rs.size;
-  if (!rep_header->type == svn_fs_fs__rep_plain)
+  if (rep_header->type == svn_fs_fs__rep_plain)
     *expanded_len = rs.size;
   else
     SVN_ERR(cache_windows(expanded_len, fs, &rs, pool));