Author: ivan
Date: Thu Jan 15 12:38:13 2015
New Revision: 1652076
URL: http://svn.apache.org/r1652076
Log:
Fix mostly theoretical data corruption in log-addressing enabled FSFS
repositories when physical-to-logical index will be more than 4 GB on
32-bit platform.
* subversion/libsvn_fs_fs/index.c
(svn_fs_fs__p2l_index_append): Use proper type (apr_uint64_t) for local
variable that holds file size.
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=1652076&r1=1652075&r2=1652076&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_fs_fs/index.c (original)
+++ subversion/trunk/subversion/libsvn_fs_fs/index.c Thu Jan 15 12:38:13 2015
@@ -1980,8 +1980,8 @@ svn_fs_fs__p2l_index_append(svn_checksum
apr_uint64_t last_entry_end = 0;
apr_uint64_t last_page_end = 0;
- apr_size_t last_buffer_size = 0; /* byte offset in the spill buffer at
- the begin of the current revision */
+ apr_uint64_t last_buffer_size = 0; /* byte offset in the spill buffer at
+ the begin of the current revision */
apr_uint64_t file_size = 0;
/* temporary data structures that collect the data which will be moved