FreeBSD/contrib/subversion/subversion/libsvn_fs_x/revprops.c
/* Write the CURRENT revprop generation to disk for repository FS.
 * Call only for repos that support revprop caching.
 */
Write the CURRENT revprop generation to disk for repository FS.
Call only for repos that support revprop caching.
Write the CURRENT revprop generation to disk for repository FS . Call only for repos that support revprop caching .
static svn_error_t *
write_revprop_generation_file(svn_fs_t *fs,
                              apr_int64_t current,
                              apr_pool_t *scratch_pool)
{
  svn_fs_x__data_t *ffd = fs->fsap_data;
  svn_stringbuf_t *buffer;
  apr_off_t offset = 0;
  SVN_ERR(checkedsummed_number(&buffer, current, scratch_pool, scratch_pool));
  SVN_ERR(open_revprop_generation_file(fs, FALSE, scratch_pool));
  SVN_ERR(svn_io_file_seek(ffd->revprop_generation_file, APR_SET, &offset,
                           scratch_pool));
  SVN_ERR(svn_io_file_write_full(ffd->revprop_generation_file, buffer->data,
                                 buffer->len, NULL, scratch_pool));
  SVN_ERR(svn_io_file_flush_to_disk(ffd->revprop_generation_file,
                                    scratch_pool));
  return SVN_NO_ERROR;
}
static svn_error_t * write_revprop_generation_file ( svn_fs_t * fs , apr_int64_t current , apr_pool_t * scratch_pool ) { svn_fs_x__data_t * ffd = fs -> fsap_data ; svn_stringbuf_t * buffer ; apr_off_t offset = 0 ; SVN_ERR ( checkedsummed_number ( & buffer , current , scratch_pool , scratch_pool ) ) ; SVN_ERR ( open_revprop_generation_file ( fs , FALSE , scratch_pool ) ) ; SVN_ERR ( svn_io_file_seek ( ffd -> revprop_generation_file , APR_SET , & offset , scratch_pool ) ) ; SVN_ERR ( svn_io_file_write_full ( ffd -> revprop_generation_file , buffer -> data , buffer -> len , NULL , scratch_pool ) ) ; SVN_ERR ( svn_io_file_flush_to_disk ( ffd -> revprop_generation_file , scratch_pool ) ) ; return SVN_NO_ERROR ; }
Write the CURRENT revprop generation to disk for repository FS.
Write the CURRENT revprop generation to disk for repository FS .