subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stef...@apache.org
Subject svn commit: r1590460 - /subversion/trunk/subversion/libsvn_fs_fs/index.c
Date Sun, 27 Apr 2014 19:04:45 GMT
Author: stefan2
Date: Sun Apr 27 19:04:44 2014
New Revision: 1590460

URL: http://svn.apache.org/r1590460
Log:
Fix an inconsistency in the L2P index prefetcher code.
This does not effect correctness in any way.

* subversion/libsvn_fs_fs/index.c
  (l2p_index_lookup): Prefetch data using the same block size as
                      everywhere else.

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=1590460&r1=1590459&r2=1590460&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_fs_fs/index.c (original)
+++ subversion/trunk/subversion/libsvn_fs_fs/index.c Sun Apr 27 19:04:44 2014
@@ -1324,8 +1324,8 @@ l2p_index_lookup(apr_off_t *offset,
       svn_boolean_t end;
       apr_off_t max_offset
         = APR_ALIGN(info_baton.entry.offset + info_baton.entry.size,
-                    0x10000);
-      apr_off_t min_offset = max_offset - 0x10000;
+                    ffd->block_size);
+      apr_off_t min_offset = max_offset - ffd->block_size;
 
       /* read the relevant page */
       SVN_ERR(get_l2p_page(&page, rev_file, fs, info_baton.first_revision,



Mime
View raw message