[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

[PATCH] Change svn_hash_read calls to svn_hash_read2

From: Dan Christian <dchristian_at_google.com>
Date: 2007-08-17 22:18:06 CEST

  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.

  (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.

To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Received on Fri Aug 17 22:16:03 2007

This is an archived mail posted to the Subversion Dev mailing list.