FreeBSD/contrib/subversion/subversion/libsvn_fs_fs/transaction.c
/* Find out what the next unique node-id and copy-id are for
   transaction TXN_ID in filesystem FS.  Store the results in *NODE_ID
   and *COPY_ID.  The next node-id is used both for creating new unique
   nodes for the given transaction, as well as uniquifying representations.
   Perform all allocations in POOL. */
Find out what the next unique node-id and copy-id are for
transaction TXN_ID in filesystem FS.  Store the results in *NODE_ID
and *COPY_ID.  The next node-id is used both for creating new unique
nodes for the given transaction, as well as uniquifying representations.
Perform all allocations in POOL.
Find out what the next unique node - id and copy - id are for transaction TXN_ID in filesystem FS . Store the results in * NODE_ID and * COPY_ID . The next node - id is used both for creating new unique nodes for the given transaction as well as uniquifying representations . Perform all allocations in POOL .
static svn_error_t *
read_next_ids(apr_uint64_t *node_id,
              apr_uint64_t *copy_id,
              svn_fs_t *fs,
              const svn_fs_fs__id_part_t *txn_id,
              apr_pool_t *pool)
{
  svn_stringbuf_t *buf;
  const char *str;
  SVN_ERR(svn_fs_fs__read_content(&buf,
                                  path_txn_next_ids(fs, txn_id, pool),
                                  pool));
  str = buf->data;
  *node_id = svn__base36toui64(&str, str);
  if (*str != ' ')
    return svn_error_create(SVN_ERR_FS_CORRUPT, NULL,
                            _("next-id file corrupt"));
  ++str;
  *copy_id = svn__base36toui64(&str, str);
  if (*str != '\n')
    return svn_error_create(SVN_ERR_FS_CORRUPT, NULL,
                            _("next-id file corrupt"));
  return SVN_NO_ERROR;
}
static svn_error_t * read_next_ids ( apr_uint64_t * node_id , apr_uint64_t * copy_id , svn_fs_t * fs , const svn_fs_fs__id_part_t * txn_id , apr_pool_t * pool ) { svn_stringbuf_t * buf ; const char * str ; SVN_ERR ( svn_fs_fs__read_content ( & buf , path_txn_next_ids ( fs , txn_id , pool ) , pool ) ) ; str = buf -> data ; * node_id = svn__base36toui64 ( & str , str ) ; if ( * str != ' ' ) return svn_error_create ( SVN_ERR_FS_CORRUPT , NULL , _ ( " " ) ) ; ++ str ; * copy_id = svn__base36toui64 ( & str , str ) ; if ( * str != ' \n ' ) return svn_error_create ( SVN_ERR_FS_CORRUPT , NULL , _ ( " " ) ) ; return SVN_NO_ERROR ; }
Find out what the next unique node-id and copy-id are for
transaction TXN_ID in filesystem FS.
Find out what the next unique node - id and copy - id are for transaction TXN_ID in filesystem FS .
/* Parse this into two separate strings. */