FreeBSD/contrib/subversion/subversion/libsvn_fs_fs/caching.c
/* *CACHE_TXDELTAS, *CACHE_FULLTEXTS flags will be set according to
   FS->CONFIG.  *CACHE_NAMESPACE receives the cache prefix to use.

   Use FS->pool for allocating the memcache and CACHE_NAMESPACE, and POOL
   for temporary allocations. */
CACHE_TXDELTAS, *CACHE_FULLTEXTS flags will be set according to
FS->CONFIG.  *CACHE_NAMESPACE receives the cache prefix to use.

Use FS->pool for allocating the memcache and CACHE_NAMESPACE, and POOL
for temporary allocations.
CACHE_TXDELTAS * CACHE_FULLTEXTS flags will be set according to FS - > CONFIG . * CACHE_NAMESPACE receives the cache prefix to use . Use FS - > pool for allocating the memcache and CACHE_NAMESPACE and POOL for temporary allocations .
static svn_error_t *
read_config(const char **cache_namespace,
            svn_boolean_t *cache_txdeltas,
            svn_boolean_t *cache_fulltexts,
            svn_fs_t *fs,
            apr_pool_t *pool)
{
  *cache_namespace
    = normalize_key_part(svn_hash__get_cstring(fs->config,
                                               SVN_FS_CONFIG_FSFS_CACHE_NS,
                                               ""),
                         pool);
  *cache_txdeltas
    = svn_hash__get_bool(fs->config,
                         SVN_FS_CONFIG_FSFS_CACHE_DELTAS,
                         TRUE);
  *cache_fulltexts
    = svn_hash__get_bool(fs->config,
                         SVN_FS_CONFIG_FSFS_CACHE_FULLTEXTS,
                         TRUE);
  return SVN_NO_ERROR;
}
static svn_error_t * read_config ( const char * * cache_namespace , svn_boolean_t * cache_txdeltas , svn_boolean_t * cache_fulltexts , svn_fs_t * fs , apr_pool_t * pool ) { * cache_namespace = normalize_key_part ( svn_hash__get_cstring ( fs -> config , SVN_FS_CONFIG_FSFS_CACHE_NS , " " ) , pool ) ; * cache_txdeltas = svn_hash__get_bool ( fs -> config , SVN_FS_CONFIG_FSFS_CACHE_DELTAS , TRUE ) ; * cache_fulltexts = svn_hash__get_bool ( fs -> config , SVN_FS_CONFIG_FSFS_CACHE_FULLTEXTS , TRUE ) ; return SVN_NO_ERROR ; }
CACHE_TXDELTAS, *CACHE_FULLTEXTS flags will be set according to
FS->CONFIG.
CACHE_TXDELTAS * CACHE_FULLTEXTS flags will be set according to FS - > CONFIG .
/* No cache namespace by default.  I.e. all FS instances share the
   * cached data.  If you specify different namespaces, the data will
   * share / compete for the same cache memory but keys will not match
   * across namespaces and, thus, cached data will not be shared between
   * namespaces.
   *
   * Since the namespace will be concatenated with other elements to form
   * the complete key prefix, we must make sure that the resulting string
   * is unique and cannot be created by any other combination of elements.
   */ /* don't cache text deltas by default.
   * Once we reconstructed the fulltexts from the deltas,
   * these deltas are rarely re-used. Therefore, only tools
   * like svnadmin will activate this to speed up operations
   * dump and verify.
   */ /* by default, cache fulltexts.
   * Most SVN tools care about reconstructed file content.
   * Thus, this is a reasonable default.
   * SVN admin tools may set that to FALSE because fulltexts
   * won't be re-used rendering the cache less effective
   * by squeezing wanted data out.
   */