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

Re: Review of lock-many API

From: Philip Martin <philip.martin_at_wandisco.com>
Date: Mon, 14 Apr 2014 19:13:06 +0100

Julian Foad <julianfoad_at_btopenworld.com> writes:

> Hi Philip. Amidst the rest of the discussion perhaps you missed this:
>
> Julian Foad wrote:
>> Index: subversion/include/svn_fs.h
>> ===================================================================
>>   * For each path in @a targets @a lock_callback will be invoked
>>   * passing @a lock_baton and the lock and error that apply to path.
>>   * @a lock_callback can be NULL in which case it is not called.
>> + *   ### Implementation here requires lock_callback is non-null.
>
> That's on svn_fs_lock_many(). The implementation contains:
>
>   for (hi = ...)
>       ...
>       if (err)
>         {
>           if (!cb_err)
>             cb_err = lock_callback(lock_baton, svn__apr_hash_index_key(hi),
>                                    NULL, err, scratch_pool);
>           svn_error_clear(err);
>         }
>
> where lock_callback is called even if it is null, as far as I can tell.

I'd fix it but my password reset hasn't worked yet :-(

-- 
Philip Martin | Subversion Committer
WANdisco // *Non-Stop Data*
Received on 2014-04-14 20:13:40 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.