Author: danielsh
Date: Fri Nov 25 15:47:57 2011
New Revision: 1206230

URL: http://svn.apache.org/viewvc?rev=1206230&view=rev
Log:
Decrease a constant from an order-of-magnitude too large a value to
an unlikely (but feasible) value.

* subversion/libsvn_fs-base/reps-strings.c
  (rep_read_range): Allocate 30 array elements for the deltas chain.

Modified:
    subversion/trunk/subversion/libsvn_fs_base/reps-strings.c

Modified: subversion/trunk/subversion/libsvn_fs_base/reps-strings.c
URL: 
http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_fs_base/reps-strings.c?rev=1206230&r1=1206229&r2=1206230&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_fs_base/reps-strings.c (original)
+++ subversion/trunk/subversion/libsvn_fs_base/reps-strings.c Fri Nov 25 
15:47:57 2011
@@ -489,8 +489,7 @@ rep_read_range(svn_fs_t *fs,
           /* Make a list of all the rep's we need to undeltify this range.
              We'll have to read them within this trail anyway, so we might
              as well do it once and up front. */
-          apr_array_header_t *reps =  /* ### what constant here? */
-            apr_array_make(pool, 666, sizeof(rep));
+          apr_array_header_t *reps = apr_array_make(pool, 30, sizeof(rep));
           do
             {
               const rep_delta_chunk_t *const first_chunk


Reply via email to