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

Re: svn commit: r15993 - trunk/subversion/svnserve

From: <kfogel_at_collab.net>
Date: 2005-08-30 20:07:45 CEST

David James <james82@gmail.com> writes:
> There doesn't seem to be a consistent pool parameter convention in serve.c.

No, I think there is.

Functions which take a connection as the first argument, take a pool
as their second argument. Everyone else takes (or should take) a pool
as the last argument, if they take a pool at all.

> (NOTE: Since these are all private functions, the SWIG bindings don't
> care about them. But, it's still a good idea to use the pool as the
> last argument in new functions, in case we want to make a build a
> public API function with the same interface.)
>
> Functions with pool as last argument:
> - authz_check_access
> - authz_check_access_cb
> - authz_commit_cb
> - must_have_access
> - get_props
> - add_lock_tokens
> - unlock_paths

Well, add_lock_tokens() is violating the pattern, because it takes a
connection as its first argument, but everyone else is consistent.

> Functions with pool as first argument:
> - lookup_access

Yeah, this is just wrong.

> Functions with pool as second argument:
> - send_mechs
> - create_fs_access
> - auth
> - auth_request
> - trivial_auth_request
> - set_path
> - delete_path
> - link_path
> - finish_report
> - abort_report
> - accept_report
> - write_proplist
> - write_prop_diffs
> - write_lock
> - get_latest_rev
> - get_dated_rev
> - change_rev_prop
> - rev_proplist
> - rev_prop
> - commit
> - get_file

I haven't checked absolutely all of them, but I believe these are all
of the func(conn, pool, ...) flavor.

-Karl

-- 
www.collab.net  <>  CollabNet  |  Distributed Development On Demand
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Aug 30 21:08:50 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.