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

Re: issue #1573: fs deltification causes delays

From: Greg Stein <gstein_at_lyra.org>
Date: 2003-11-05 20:18:53 CET

On Mon, Nov 03, 2003 at 10:43:17PM -0600, kfogel@collab.net wrote:
>...
> 2. Make svn_fs_merge() spawn a deltification thread (using APR
> threads) and return success immediately. If the thread fails to
> deltify, it's not the end of the world: we simply don't get the
> disk-space savings.
>
> (2) looks like a wonderful solution; the only thing I'm not sure of is
> how to do it inside an Apache module. Does anyone know?

"Don't do it"

If you spin up a thread, then return control to Apache, you could find the
process simply exiting out from underneath you. Needless to say, that
would be quite bad if it occurred within the BDB library...

Apache sometimes kills and restarts processes to clean up anything that it
might have missed in its normal set of cleanups. That will take down
threads, too, so you really want to avoid that.

Cheers,
-g

-- 
Greg Stein, http://www.lyra.org/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Nov 5 20:20:31 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.