FreeBSD/contrib/subversion/subversion/libsvn_wc/wc_db_wcroot.c
/* Sqlite transaction helper for opening the db in
   svn_wc__db_wcroot_parse_local_abspath() to avoid multiple
   db operations that each obtain and release a lock */
Sqlite transaction helper for opening the db in
svn_wc__db_wcroot_parse_local_abspath() to avoid multiple
db operations that each obtain and release a lock
Sqlite transaction helper for opening the db in svn_wc__db_wcroot_parse_local_abspath () to avoid multiple db operations that each obtain and release a lock
static svn_error_t *
fetch_sdb_info(apr_int64_t *wc_id,
               int *format,
               svn_sqlite__db_t *sdb,
               apr_pool_t *scratch_pool)
{
  *wc_id = -1;
  *format = -1;
  SVN_SQLITE__WITH_LOCK4(
        svn_wc__db_util_fetch_wc_id(wc_id, sdb, scratch_pool),
        svn_sqlite__read_schema_version(format, sdb, scratch_pool),
        verify_stats_table(sdb, *format, scratch_pool),
        SVN_NO_ERROR,
        sdb);
  return SVN_NO_ERROR;
}
static svn_error_t * fetch_sdb_info ( apr_int64_t * wc_id , int * format , svn_sqlite__db_t * sdb , apr_pool_t * scratch_pool ) { * wc_id = -1 ; * format = -1 ; SVN_SQLITE__WITH_LOCK4 ( svn_wc__db_util_fetch_wc_id ( wc_id , sdb , scratch_pool ) , svn_sqlite__read_schema_version ( format , sdb , scratch_pool ) , verify_stats_table ( sdb , * format , scratch_pool ) , SVN_NO_ERROR , sdb ) ; return SVN_NO_ERROR ; }
Sqlite transaction helper for opening the db in
svn_wc__db_wcroot_parse_local_abspath() to avoid multiple
db operations that each obtain and release a lock
Sqlite transaction helper for opening the db in svn_wc__db_wcroot_parse_local_abspath () to avoid multiple db operations that each obtain and release a lock