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

Re: Recover a corrupt repository

From: John Peacock <john.peacock_at_havurah-software.org>
Date: 2007-12-13 13:16:37 CET

Ryan Schmidt wrote:
> But... but... but... only one commit can happen at a time. And the
> commit is not over until the post-commit script has finished running.
> Therefore, if you run svnsync in the post-commit hook, there can already
> only be one svnsync process running at a time.

Um, no. The commit is over before the post-commit has completed (that's why it
is called post-commit). Just because it doesn't return control to the client
until after the post-commit fires, doesn't mean someone else can't commit. In
fact, it has long be recommended that long-running post-commit steps be forked
into the background, which makes the situation even more muddy...

John

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Dec 13 13:16:40 2007

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.