subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stef...@apache.org
Subject svn commit: r1635638 - /subversion/trunk/subversion/libsvn_fs_x/index.c
Date Thu, 30 Oct 2014 23:28:35 GMT
Author: stefan2
Date: Thu Oct 30 23:28:35 2014
New Revision: 1635638

URL: http://svn.apache.org/r1635638
Log:
Follow-up to r1635528: Fix FSX index rewrite code for empty regions.

* subversion/libsvn_fs_x/index.c
  (svn_fs_x__l2p_index_from_p2l_entries): If we skip an item, the resulting
                                          list will be one item shorter.

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

Modified: subversion/trunk/subversion/libsvn_fs_x/index.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_fs_x/index.c?rev=1635638&r1=1635637&r2=1635638&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_fs_x/index.c (original)
+++ subversion/trunk/subversion/libsvn_fs_x/index.c Thu Oct 30 23:28:35 2014
@@ -3185,7 +3185,10 @@ svn_fs_x__l2p_index_from_p2l_entries(con
 
       /* skip unused regions (e.g. padding) */
       if (entry->item_count == 0)
-        continue;
+        {
+          --sub_item_orders->nelts;
+          continue;
+        }
 
       assert(entry);
       ordered->entry = entry;



Mime
View raw message