FreeBSD/contrib/subversion/subversion/libsvn_fs_x/index.c
/* If REV_FILE->P2L_STREAM is NULL, create a new stream for the phys-to-log
 * index for REVISION in FS using the rev / pack file provided by REV_FILE.
 */
If REV_FILE->P2L_STREAM is NULL, create a new stream for the phys-to-log
index for REVISION in FS using the rev / pack file provided by REV_FILE.
If REV_FILE - > P2L_STREAM is NULL create a new stream for the phys - to - log index for REVISION in FS using the rev / pack file provided by REV_FILE .
static svn_error_t *
auto_open_p2l_index(svn_fs_x__revision_file_t *rev_file,
                    svn_fs_t *fs,
                    svn_revnum_t revision)
{
  if (rev_file->p2l_stream == NULL)
    {
      svn_fs_x__data_t *ffd = fs->fsap_data;
      SVN_ERR(svn_fs_x__auto_read_footer(rev_file));
      SVN_ERR(packed_stream_open(&rev_file->p2l_stream,
                                 rev_file->file,
                                 rev_file->p2l_offset,
                                 rev_file->footer_offset,
                                 P2L_STREAM_PREFIX,
                                 (apr_size_t)ffd->block_size,
                                 rev_file->pool,
                                 rev_file->pool));
    }
  return SVN_NO_ERROR;
}
static svn_error_t * auto_open_p2l_index ( svn_fs_x__revision_file_t * rev_file , svn_fs_t * fs , svn_revnum_t revision ) { if ( rev_file -> p2l_stream == NULL ) { svn_fs_x__data_t * ffd = fs -> fsap_data ; SVN_ERR ( svn_fs_x__auto_read_footer ( rev_file ) ) ; SVN_ERR ( packed_stream_open ( & rev_file -> p2l_stream , rev_file -> file , rev_file -> p2l_offset , rev_file -> footer_offset , P2L_STREAM_PREFIX , ( apr_size_t ) ffd -> block_size , rev_file -> pool , rev_file -> pool ) ) ; } return SVN_NO_ERROR ; }
If REV_FILE->P2L_STREAM is NULL, create a new stream for the phys-to-log
 index for REVISION in FS using the rev / pack file provided by REV_FILE.
If REV_FILE - > P2L_STREAM is NULL create a new stream for the phys - to - log index for REVISION in FS using the rev / pack file provided by REV_FILE .