FreeBSD/contrib/subversion/subversion/libsvn_fs_fs/transaction.c
/* If the transaction TXN_ID in FS uses logical addressing, store ENTRY
 * in the phys-to-log proto index file of transaction TXN_ID.
 * Use POOL for allocations.
 */
If the transaction TXN_ID in FS uses logical addressing, store ENTRY
in the phys-to-log proto index file of transaction TXN_ID.
Use POOL for allocations.
If the transaction TXN_ID in FS uses logical addressing store ENTRY in the phys - to - log proto index file of transaction TXN_ID . Use POOL for allocations .
static svn_error_t *
store_p2l_index_entry(svn_fs_t *fs,
                      const svn_fs_fs__id_part_t *txn_id,
                      svn_fs_fs__p2l_entry_t *entry,
                      apr_pool_t *pool)
{
  if (svn_fs_fs__use_log_addressing(fs))
    {
      const char *path = svn_fs_fs__path_p2l_proto_index(fs, txn_id, pool);
      apr_file_t *file;
      SVN_ERR(svn_fs_fs__p2l_proto_index_open(&file, path, pool));
      SVN_ERR(svn_fs_fs__p2l_proto_index_add_entry(file, entry, pool));
      SVN_ERR(svn_io_file_close(file, pool));
    }
  return SVN_NO_ERROR;
}
static svn_error_t * store_p2l_index_entry ( svn_fs_t * fs , const svn_fs_fs__id_part_t * txn_id , svn_fs_fs__p2l_entry_t * entry , apr_pool_t * pool ) { if ( svn_fs_fs__use_log_addressing ( fs ) ) { const char * path = svn_fs_fs__path_p2l_proto_index ( fs , txn_id , pool ) ; apr_file_t * file ; SVN_ERR ( svn_fs_fs__p2l_proto_index_open ( & file , path , pool ) ) ; SVN_ERR ( svn_fs_fs__p2l_proto_index_add_entry ( file , entry , pool ) ) ; SVN_ERR ( svn_io_file_close ( file , pool ) ) ; } return SVN_NO_ERROR ; }
If the transaction TXN_ID in FS uses logical addressing, store ENTRY
 in the phys-to-log proto index file of transaction TXN_ID.
If the transaction TXN_ID in FS uses logical addressing store ENTRY in the phys - to - log proto index file of transaction TXN_ID .