Re: [PATCH] Cache open repository per connection
From: Greg Stein <gstein_at_lyra.org>
Date: 2003-07-02 04:25:54 CEST
On Wed, Jul 02, 2003 at 01:26:24AM +0200, Sander Striker wrote:
Bugs :-)
>...
Hmm. I'm not really sure what this is extracting from the URL. A clearer
> + repos_key = apr_pstrcat(r->pool, "mod_dav_svn:", base_path, root_path);
Might want to put a ,NULL on the end there. Otherwise, your key is random
In any case, I'd recommend caching on the fs_path instead of the URI.
> + repos->repos = (void *)apr_table_get(r->connection->notes, repos_key);
I'd recommend using r->connection->pool's userdata instead of the notes.
Cheers,
-- Greg Stein, http://www.lyra.org/ --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org For additional commands, e-mail: dev-help@subversion.tigris.orgReceived on Wed Jul 2 04:20:52 2003 |
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.