FreeBSD/contrib/subversion/subversion/libsvn_repos/repos.c
/** Obtain a lock on db logs lock file. Create one if it does not exist.
 */
Obtain a lock on db logs lock file. Create one if it does not exist.
Obtain a lock on db logs lock file . Create one if it does not exist .
static svn_error_t *
lock_db_logs_file(svn_repos_t *repos,
                  svn_boolean_t exclusive,
                  apr_pool_t *pool)
{
  const char * lock_file = svn_repos_db_logs_lockfile(repos, pool);
  svn_error_clear(create_db_logs_lock(repos, pool));
  return svn_io_file_lock2(lock_file, exclusive, FALSE, pool);
}
static svn_error_t * lock_db_logs_file ( svn_repos_t * repos , svn_boolean_t exclusive , apr_pool_t * pool ) { const char * lock_file = svn_repos_db_logs_lockfile ( repos , pool ) ; svn_error_clear ( create_db_logs_lock ( repos , pool ) ) ; return svn_io_file_lock2 ( lock_file , exclusive , FALSE , pool ) ; }
Obtain a lock on db logs lock file.
Obtain a lock on db logs lock file .
/* Try to create a lock file, in case if it is missing. As in case of the
     repositories created before hotcopy functionality.  */