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

Re: ra_dav tests failing

From: Philip Martin <philip_at_codematters.co.uk>
Date: 2005-03-27 17:08:27 CEST

Ben Collins-Sussman <sussman@collab.net> writes:

> 1. How do we find all paths in the lock-token hash which are children
> of the directory? There's no magical partial-key lookup here, like we
> have in BDB.

I think the only thing you can do is to iterate over the items and
check each one. That should be OK for a small number of locks, but
obviously doesn't scale well. To do better the locks probably need to
arranged in some sort of tree, either by changing the type of the
elements stored in the hash or by replacing the hash.

One possibility is to combine the simple iterative search with removal
of the apr_hash_t from the public ABI, i.e. put the hash into an
opaque structure and provide accessor functions. That allows a
relative simple fix to get ra_dav working now, but allows a more
sophisticated lock storage system to be introduced later.

Philip Martin
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sun Mar 27 17:10:00 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.