FreeBSD/contrib/subversion/subversion/libsvn_fs_x/revprops.c
/* Test whether revprop cache and necessary infrastructure are
   available in FS. */
Test whether revprop cache and necessary infrastructure are
available in FS.
Test whether revprop cache and necessary infrastructure are available in FS .
static svn_boolean_t
has_revprop_cache(svn_fs_t *fs,
                  apr_pool_t *scratch_pool)
{
  svn_fs_x__data_t *ffd = fs->fsap_data;
  svn_error_t *error;
  if (ffd->revprop_cache == NULL)
    return FALSE;
  error = open_revprop_generation_file(fs, TRUE, scratch_pool);
  if (error)
    {
      ffd->revprop_cache = NULL;
      log_revprop_cache_init_warning(fs, error,
                                     "Revprop caching for '%s' disabled "
                                     "because infrastructure for revprop "
                                     "caching failed to initialize.",
                                     scratch_pool);
      return FALSE;
    }
  return TRUE;
}
static svn_boolean_t has_revprop_cache ( svn_fs_t * fs , apr_pool_t * scratch_pool ) { svn_fs_x__data_t * ffd = fs -> fsap_data ; svn_error_t * error ; if ( ffd -> revprop_cache == NULL ) return FALSE ; error = open_revprop_generation_file ( fs , TRUE , scratch_pool ) ; if ( error ) { ffd -> revprop_cache = NULL ; log_revprop_cache_init_warning ( fs , error , " " " " " " , scratch_pool ) ; return FALSE ; } return TRUE ; }
Test whether revprop cache and necessary infrastructure are
available in FS.
Test whether revprop cache and necessary infrastructure are available in FS .
/* is the cache (still) enabled? */ /* try initialize our file-backed infrastructure */ /* failure -> disable revprop cache for good */