Larry,

What happens right now if two tag readers are trying to upgrade to write-locks at the same time? Can they both have a read lock in the same directory and thus each prevent the other from upgrading to a write-lock?

Derek

--
*8^)

Email: [EMAIL PROTECTED]

Get CVS support at <http://ximbiot.com>!
--
Black holes are where God divided by zero.


[EMAIL PROTECTED] wrote:

User: scjones Date: 02/10/03 20:35:31

Modified: src ChangeLog lock.c tag.c
Log:
* lock.c (readers_exist): Ignore our own read lock, if any, to
allow upgrading an existing read lock to a write lock.
* tag.c (rtag_proc, rtag_fileproc, tag_fileproc): Rather than
locking the entire tree, have start_recursion establish read
locks and then upgrade the read lock to a write lock (so only
one directory is locked at a time).



_______________________________________________
Bug-cvs mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-cvs

Reply via email to