FreeBSD/contrib/subversion/subversion/libsvn_fs_x/revprops.c
/* Set the revprop generation in FS to the next even generation after
   the odd value in GENERATION to indicate that
   a) readers shall re-read revprops, and
   b) the write process has been completed (no recovery required).
   This is a no-op for repo formats that don't support revprop caching. */
Set the revprop generation in FS to the next even generation after
the odd value in GENERATION to indicate that
a) readers shall re-read revprops, and
b) the write process has been completed (no recovery required).
This is a no-op for repo formats that don't support revprop caching.
Set the revprop generation in FS to the next even generation after the odd value in GENERATION to indicate that a ) readers shall re - read revprops and b ) the write process has been completed ( no recovery required ) . This is a no - op for repo formats that don ' t support revprop caching .
static svn_error_t *
end_revprop_change(svn_fs_t *fs,
                   apr_int64_t generation,
                   apr_pool_t *scratch_pool)
{
  svn_fs_x__data_t *ffd = fs->fsap_data;
  SVN_ERR_ASSERT(ffd->has_write_lock);
  SVN_ERR_ASSERT(generation % 2);
  SVN_ERR(write_revprop_generation_file(fs, generation + 1, scratch_pool));
  return SVN_NO_ERROR;
}
static svn_error_t * end_revprop_change ( svn_fs_t * fs , apr_int64_t generation , apr_pool_t * scratch_pool ) { svn_fs_x__data_t * ffd = fs -> fsap_data ; SVN_ERR_ASSERT ( ffd -> has_write_lock ) ; SVN_ERR_ASSERT ( generation % 2 ) ; SVN_ERR ( write_revprop_generation_file ( fs , generation + 1 , scratch_pool ) ) ; return SVN_NO_ERROR ; }
Set the revprop generation in FS to the next even generation after
the odd value in GENERATION to indicate that
a) readers shall re-read revprops, and
b) the write process has been completed (no recovery required).
Set the revprop generation in FS to the next even generation after the odd value in GENERATION to indicate that a ) readers shall re - read revprops and b ) the write process has been completed ( no recovery required ) .
/* Set the revprop generation to an even value to indicate
   * that a write has been completed.  Since we held the write
   * lock, nobody else could have updated the file contents.
   */