FreeBSD/contrib/subversion/subversion/libsvn_repos/repos.c
/* Create the DB logs lockfile. */
Create the DB logs lockfile.
Create the DB logs lockfile .
static svn_error_t *
create_db_logs_lock(svn_repos_t *repos, apr_pool_t *pool) {
  const char *contents;
  const char *lockfile_path;
  lockfile_path = svn_repos_db_logs_lockfile(repos, pool);
  if (strcmp(repos->fs_type, SVN_FS_TYPE_BDB) == 0)
    contents = bdb_logs_lock_file_contents;
  else
    contents = pre12_compat_unneeded_file_contents;
  SVN_ERR_W(svn_io_file_create(lockfile_path, contents, pool),
            _("Creating db logs lock file"));
  return SVN_NO_ERROR;
}
static svn_error_t * create_db_logs_lock ( svn_repos_t * repos , apr_pool_t * pool ) { const char * contents ; const char * lockfile_path ; lockfile_path = svn_repos_db_logs_lockfile ( repos , pool ) ; if ( strcmp ( repos -> fs_type , SVN_FS_TYPE_BDB ) == 0 ) contents = bdb_logs_lock_file_contents ; else contents = pre12_compat_unneeded_file_contents ; SVN_ERR_W ( svn_io_file_create ( lockfile_path , contents , pool ) , _ ( " " ) ) ; return SVN_NO_ERROR ; }
Create the DB logs lockfile.
Create the DB logs lockfile .