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

Re: Possible incompatibility of svn_repos_verify_fs2() in 1.9.0-rc1

From: Philip Martin <philip.martin_at_wandisco.com>
Date: Tue, 16 Jun 2015 12:13:29 +0100

Branko Čibej <brane_at_wandisco.com> writes:

> My main objection to this approach is that it breaks all the API
> patterns we've ever had: it creates a function that does not return an
> error even though it clearly fails, and relies on some notification
> callback to report actual errors.

We have been reporting errors via callbacks since 1.2, look at
svn_ra_lock(). We have done it again in 1.9, look at
svn_fs_lock_many().

Also, is the function clearly failing when it reports a verification
error? If it is correctly diagnosing that the repository is corrupt
then the function is in some sense succeeding. I suppose we could
change svn_repos_notify_t.err to some other type, but svn_error_t is a
convenient way to package the information.

-- 
Philip Martin | Subversion Committer
WANdisco // *Non-Stop Data*
Received on 2015-06-16 13:13:46 CEST

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.