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

[patch] better error return

From: Ben Collins <bcollins_at_debian.org>
Date: 2002-03-08 05:41:05 CET

Trying to track the out of memory "while deleting string" I found that
this was not where the original error occurs. Instead, this happens
after the original failure in libsvn_ra_local/commit_editor.c(close_edit),
which eventually gets to the above error during the txn abort. Here's a
patch to make the original error get returned:

  * libsvn_ra_local/commit_editor.c:

    (close_edit): If svn_repos_fs_commit_txn fails, we do not want to
      return an error from svn_fs_abort_txn. Instead, call
      svn_fs_abort_txn without error checking, and return what
      svn_repos_fs_commit_txn returned to us.

-- 
 .----------=======-=-======-=========-----------=====------------=-=-----.
/       Ben Collins    --    Debian GNU/Linux    --    WatchGuard.com      \
`          bcollins@debian.org   --   Ben.Collins@watchguard.com           '
 `---=========------=======-------------=-=-----=-===-======-------=--=---'


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

Received on Fri Mar 8 05:45:42 2002

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.