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/05/12 00:56:16 UTC

svn commit: r1481446 - /subversion/branches/fsfs-format7/subversion/libsvn_fs_fs/pack.c

Author: stefan2
Date: Sat May 11 22:56:16 2013
New Revision: 1481446

URL: http://svn.apache.org/r1481446
Log:
On the fsfs-format7 branch: Fix the issue of missing items
in the l2p index of some pack files.

* subversion/libsvn_fs_fs/pack.c
  (write_l2p_index): skip empty entries and thus don't use them
   when counting for all entries that need to be written to l2p

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

Modified: subversion/branches/fsfs-format7/subversion/libsvn_fs_fs/pack.c
URL: http://svn.apache.org/viewvc/subversion/branches/fsfs-format7/subversion/libsvn_fs_fs/pack.c?rev=1481446&r1=1481445&r2=1481446&view=diff
==============================================================================
--- subversion/branches/fsfs-format7/subversion/libsvn_fs_fs/pack.c (original)
+++ subversion/branches/fsfs-format7/subversion/libsvn_fs_fs/pack.c Sat May 11 22:56:16 2013
@@ -1379,6 +1379,10 @@ write_l2p_index(pack_context_t *context,
       sub_item_ordered_t *ordered
         = &APR_ARRAY_IDX(sub_item_orders, i, sub_item_ordered_t);
 
+      /* skip unused regions (e.g. padding) */
+      if (entry->item_count == 0)
+        continue;
+      
       ordered->entry = entry;
       count += entry->item_count;