You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Dan Christian <dc...@google.com> on 2007/08/17 20:18:06 UTC

[PATCH] Change svn_hash_read calls to svn_hash_read2

[[[
  Convert old svn_hash_read calls in fs_fs.c to new svn_hash_read2.
This ends up saving 4 file system calls per transaction.
  The semantic difference between the two is that hash_read returns
success on empty files, while hash_read2 returns an error.  We got the
empty files by calling open with the CREATE flag set.
  This also fixes a minor memory leak if we had to retry on ESTALE.
]]]

subversion/libsvn_fs_fs/fs_fs.c
  (svn_fs_fs__revision_proplist) Switch to svn_hash_read2.
  (get_txn_proplist, get_txn_mergeinfo) open without CREATE and switch
to svn_hash_read2.
  (svn_fs_fs__change_txn_prop, svn_fs_fs__change_txn_mergeinfo) Handle
file not existing yet.