[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Locks, pls help

From: Larry Jones
Subject: Re: Locks, pls help
Date: Wed, 3 Oct 2001 13:42:46 -0400 (EDT)

raptor writes:
> But the main questions stays :
> WHAT is the reason to hold the lock when the commit is successful at the
> time of log-info ? There should be some reason, aren't it ? :")

The way commit currently works is that it locks *all* of the directories
that are going to be committed and runs the commitinfo script for each
directory.  If none of the commitinfo scipts veto the commit, then it
goes ahead and, for each directory, does the commit and invokes the
loginfo script.  When the entire commit is complete, it unlocks all of
the directories.  While it would be possible to unlock each directory as
it's committed, it would be much more complicated and there doesn't seem
to be any real benefit.

-Larry Jones

Buddy, if you think I'm even going to BE here, you're crazy! -- Calvin

reply via email to

[Prev in Thread] Current Thread [Next in Thread]