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/04/27 19:34:23 UTC

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

Author: stefan2
Date: Sat Apr 27 17:34:22 2013
New Revision: 1476639

URL: http://svn.apache.org/r1476639
Log:
On the fsfs-format7 branch: Minor packing code fixes.

* subversion/libsvn_fs_fs/pack.c
  (auto_pad_block): Unused entries shall contain ZERO sub-elements
  (select_block_entries): typo in comment

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=1476639&r1=1476638&r2=1476639&view=diff
==============================================================================
--- subversion/branches/fsfs-format7/subversion/libsvn_fs_fs/pack.c (original)
+++ subversion/branches/fsfs-format7/subversion/libsvn_fs_fs/pack.c Sat Apr 27 17:34:22 2013
@@ -907,8 +907,8 @@ auto_pad_block(pack_context_t *context,
       null_entry.offset = context->pack_offset;
       null_entry.size = padding;
       null_entry.type = SVN_FS_FS__ITEM_TYPE_UNUSED;
-      null_entry.item_count = 1;
-      null_entry.items = &rev_item;
+      null_entry.item_count = 0;
+      null_entry.items = NULL;
 
       SVN_ERR(write_null_bytes(context->pack_file, padding, pool));
       SVN_ERR(svn_fs_fs__p2l_proto_index_add_entry
@@ -1027,7 +1027,7 @@ select_block_entries(int *entries_in_blo
         }
     }
 
-  /* return nubmer of items to copy into the pack file.
+  /* return number of items to copy into the pack file.
    * Must be at least 1 to make progress. */
   *entries_in_block = MAX(1, i - start_index);