FreeBSD/contrib/subversion/subversion/libsvn_fs_x/tree.c
/* Clears the CACHE at regular intervals (destroying all cached nodes)
 */
Clears the CACHE at regular intervals (destroying all cached nodes)
Clears the CACHE at regular intervals ( destroying all cached nodes )
static void
auto_clear_dag_cache(svn_fs_x__dag_cache_t* cache)
{
  if (cache->insertions > BUCKET_COUNT)
    {
      svn_pool_clear(cache->pool);
      memset(cache->buckets, 0, sizeof(cache->buckets));
      cache->insertions = 0;
    }
}
static void auto_clear_dag_cache ( svn_fs_x__dag_cache_t * cache ) { if ( cache -> insertions > BUCKET_COUNT ) { svn_pool_clear ( cache -> pool ) ; memset ( cache -> buckets , 0 , sizeof ( cache -> buckets ) ) ; cache -> insertions = 0 ; } }
Clears the CACHE at regular intervals (destroying all cached nodes)
Clears the CACHE at regular intervals ( destroying all cached nodes )