subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stef...@apache.org
Subject svn commit: r1606142 - /subversion/trunk/subversion/libsvn_fs_fs/index.c
Date Fri, 27 Jun 2014 16:07:24 GMT
Author: stefan2
Date: Fri Jun 27 16:07:24 2014
New Revision: 1606142

URL: http://svn.apache.org/r1606142
Log:
Make sure all contents of the FSFS f7 indexes are fully deterministic.

For internal convenience, the FSFS format7 P2L index describes the rev
contents in full blocks of whatever granularity.  The last block will
usually extend beyond EOF and we add an "empty / unused" padding entry
for it to the index.

It's checksum is never used nor verified but it should not report random
values.

* subversion/libsvn_fs_fs/index.c
  (svn_fs_fs__p2l_index_append): Use 0 as checksum of the P2L index filler
                                 entry as we do for all other empty regions.

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

Modified: subversion/trunk/subversion/libsvn_fs_fs/index.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_fs_fs/index.c?rev=1606142&r1=1606141&r2=1606142&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_fs_fs/index.c (original)
+++ subversion/trunk/subversion/libsvn_fs_fs/index.c Fri Jun 27 16:07:24 2014
@@ -1650,6 +1650,7 @@ svn_fs_fs__p2l_index_append(svn_fs_t *fs
           entry.offset = last_entry_end;
           entry.size = APR_ALIGN(entry.offset, page_size) - entry.offset;
           entry.type = 0;
+          entry.fnv1_checksum = 0;
           entry.item.revision = last_revision;
           entry.item.number = 0;
         }



Mime
View raw message