subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cmpil...@apache.org
Subject svn commit: r1130697 - /subversion/trunk/subversion/libsvn_ra_serf/blncache.c
Date Thu, 02 Jun 2011 18:01:19 GMT
Author: cmpilato
Date: Thu Jun  2 18:01:19 2011
New Revision: 1130697

URL: http://svn.apache.org/viewvc?rev=1130697&view=rev
Log:
Oops!  I accidentally changed the pool heirarchy of the ra_serf
baseline cache in r1130679.

* subversion/libsvn_ra_serf/blncache.c
  (svn_ra_serf__blncache_create): Restore use of subpool for cache
    item allocations.

Modified:
    subversion/trunk/subversion/libsvn_ra_serf/blncache.c

Modified: subversion/trunk/subversion/libsvn_ra_serf/blncache.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_ra_serf/blncache.c?rev=1130697&r1=1130696&r2=1130697&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_ra_serf/blncache.c (original)
+++ subversion/trunk/subversion/libsvn_ra_serf/blncache.c Thu Jun  2 18:01:19 2011
@@ -69,11 +69,13 @@ svn_ra_serf__blncache_create(svn_ra_serf
                              apr_pool_t *pool)
 {
     svn_ra_serf__blncache_t *blncache = apr_pcalloc(pool, sizeof(*blncache));
+    apr_pool_t *cache_pool;
 
     /* Create subpool for cached data. It will be cleared if we reach maximum
      * cache size.*/
-    blncache->revnum_to_bc = apr_hash_make(pool);
-    blncache->baseline_info = apr_hash_make(pool);
+    cache_pool = svn_pool_create(pool);
+    blncache->revnum_to_bc = apr_hash_make(cache_pool);
+    blncache->baseline_info = apr_hash_make(cache_pool);
 
     *blncache_p = blncache;
 



Mime
View raw message