FreeBSD/contrib/subversion/subversion/libsvn_fs_fs/caching.c
/* APR pool cleanup handler that will reset the cache pointer given in
   BATON_VOID when the FS_POOL gets cleaned up. */
APR pool cleanup handler that will reset the cache pointer given in
BATON_VOID when the FS_POOL gets cleaned up.
APR pool cleanup handler that will reset the cache pointer given in BATON_VOID when the FS_POOL gets cleaned up .
static apr_status_t
remove_txn_cache_fs(void *baton_void)
{
  struct txn_cleanup_baton_t *baton = baton_void;
  if (*baton->to_reset == baton->txn_cache)
    {
      *baton->to_reset = NULL;
    }
  apr_pool_cleanup_kill(baton->txn_pool,
                        baton,
                        remove_txn_cache_txn);
  return  APR_SUCCESS;
}
static apr_status_t remove_txn_cache_fs ( void * baton_void ) { struct txn_cleanup_baton_t * baton = baton_void ; if ( * baton -> to_reset == baton -> txn_cache ) { * baton -> to_reset = NULL ; } apr_pool_cleanup_kill ( baton -> txn_pool , baton , remove_txn_cache_txn ) ; return APR_SUCCESS ; }
APR pool cleanup handler that will reset the cache pointer given in
BATON_VOID when the FS_POOL gets cleaned up.
APR pool cleanup handler that will reset the cache pointer given in BATON_VOID when the FS_POOL gets cleaned up .
/* be careful not to hurt performance by resetting newer txn's caches. */ /* This is equivalent to calling svn_fs_fs__reset_txn_caches(). */ /* It's cleaned up now. Prevent double cleanup. */