FreeBSD/contrib/subversion/subversion/libsvn_fs_fs/cached_data.c
/* Given a node-id ID, and a representation REP in filesystem FS, open
   the correct file and seek to the correction location.  Store this
   file in *FILE_P.  Perform any allocations in POOL. */
Given a node-id ID, and a representation REP in filesystem FS, open
the correct file and seek to the correction location.  Store this
file in *FILE_P.  Perform any allocations in POOL.
Given a node - id ID and a representation REP in filesystem FS open the correct file and seek to the correction location . Store this file in * FILE_P . Perform any allocations in POOL .
static svn_error_t *
open_and_seek_representation(svn_fs_fs__revision_file_t **file_p,
                             svn_fs_t *fs,
                             representation_t *rep,
                             apr_pool_t *pool)
{
  if (! svn_fs_fs__id_txn_used(&rep->txn_id))
    return open_and_seek_revision(file_p, fs, rep->revision, rep->item_index,
                                  pool);
  else
    return open_and_seek_transaction(file_p, fs, rep, pool);
}
static svn_error_t * open_and_seek_representation ( svn_fs_fs__revision_file_t * * file_p , svn_fs_t * fs , representation_t * rep , apr_pool_t * pool ) { if ( ! svn_fs_fs__id_txn_used ( & rep -> txn_id ) ) return open_and_seek_revision ( file_p , fs , rep -> revision , rep -> item_index , pool ) ; else return open_and_seek_transaction ( file_p , fs , rep , pool ) ; }
Given a node-id ID, and a representation REP in filesystem FS, open
the correct file and seek to the correction location.
Given a node - id ID and a representation REP in filesystem FS open the correct file and seek to the correction location .