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

Re: [PATCH] ra_dav error handling tweaks

From: <kfogel_at_collab.net>
Date: 2005-06-14 19:58:12 CEST

Joe Orton <jorton@redhat.com> writes:
> A couple of minor tweaks to error handling in ra_dav; this has passed
> davautocheck:
>
> * subversion/libsvn_ra_dav/fetch.c (svn_ra_dav__get_locks): Clear
> error returned by svn_ra_dav__parsed_request if returning the error
> stored in the baton. Return SVN_NO_ERROR for the non-error case
> where err is guaranteed to be NULL by the preceding code.
> (custom_get_request): Collapse a redundant conditional.

Thanks; committed in r15056.

(Any reason you'd rather not commit it yourself? Or if you meant to,
we can always change svn:author on r15056, just let me know :-) )

-Karl

> Index: subversion/libsvn_ra_dav/fetch.c
> ===================================================================
> --- subversion/libsvn_ra_dav/fetch.c (revision 15052)
> +++ subversion/libsvn_ra_dav/fetch.c (working copy)
> @@ -522,10 +522,7 @@
> }
> #endif /* ! SVN_NEON_0_25_0 */
>
> - if (err)
> - return err;
> -
> - return SVN_NO_ERROR;
> + return err;
> }
>
> /* This implements the ne_block_reader() callback interface. */
> @@ -1633,7 +1630,12 @@
> FALSE,
> pool);
> if (baton.err)
> - return baton.err;
> + {
> + if (err)
> + svn_error_clear(err);
> +
> + return baton.err;
> + }
>
> /* Map status 501: Method Not Implemented to our not implemented error.
> 1.0.x servers and older don't support this report. */
> @@ -1651,7 +1653,7 @@
> svn_pool_destroy(baton.scratchpool);
>
> *locks = baton.lock_hash;
> - return err;
> + return SVN_NO_ERROR;
> }
>
> /* ------------------------------------------------------------------------- */
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: dev-help@subversion.tigris.org

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Jun 14 20:41:15 2005

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.