FreeBSD/contrib/subversion/subversion/libsvn_fs_fs/transaction.c
/* Update the 'current' file to hold the correct next node and copy_ids
   from transaction TXN_ID in filesystem FS.  The current revision is
   set to REV.  Perform temporary allocations in POOL. */
Update the 'current' file to hold the correct next node and copy_ids
from transaction TXN_ID in filesystem FS.  The current revision is
set to REV.  Perform temporary allocations in POOL.
Update the ' current ' file to hold the correct next node and copy_ids from transaction TXN_ID in filesystem FS . The current revision is set to REV . Perform temporary allocations in POOL .
static svn_error_t *
write_final_current(svn_fs_t *fs,
                    const svn_fs_fs__id_part_t *txn_id,
                    svn_revnum_t rev,
                    apr_uint64_t start_node_id,
                    apr_uint64_t start_copy_id,
                    apr_pool_t *pool)
{
  apr_uint64_t txn_node_id;
  apr_uint64_t txn_copy_id;
  fs_fs_data_t *ffd = fs->fsap_data;
  if (ffd->format >= SVN_FS_FS__MIN_NO_GLOBAL_IDS_FORMAT)
    return svn_fs_fs__write_current(fs, rev, 0, 0, pool);
  SVN_ERR(read_next_ids(&txn_node_id, &txn_copy_id, fs, txn_id, pool));
  start_node_id += txn_node_id;
  start_copy_id += txn_copy_id;
  return svn_fs_fs__write_current(fs, rev, start_node_id, start_copy_id,
                                  pool);
}
static svn_error_t * write_final_current ( svn_fs_t * fs , const svn_fs_fs__id_part_t * txn_id , svn_revnum_t rev , apr_uint64_t start_node_id , apr_uint64_t start_copy_id , apr_pool_t * pool ) { apr_uint64_t txn_node_id ; apr_uint64_t txn_copy_id ; fs_fs_data_t * ffd = fs -> fsap_data ; if ( ffd -> format >= SVN_FS_FS__MIN_NO_GLOBAL_IDS_FORMAT ) return svn_fs_fs__write_current ( fs , rev , 0 , 0 , pool ) ; SVN_ERR ( read_next_ids ( & txn_node_id , & txn_copy_id , fs , txn_id , pool ) ) ; start_node_id += txn_node_id ; start_copy_id += txn_copy_id ; return svn_fs_fs__write_current ( fs , rev , start_node_id , start_copy_id , pool ) ; }
Update the 'current' file to hold the correct next node and copy_ids
from transaction TXN_ID in filesystem FS.
Update the ' current ' file to hold the correct next node and copy_ids from transaction TXN_ID in filesystem FS .
/* To find the next available ids, we add the id that used to be in
     the 'current' file, to the next ids from the transaction file. */