bug-cvs
[Top][All Lists]
Advanced

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

Re: Bug Report


From: Karl Tomlinson
Subject: Re: Bug Report
Date: Tue, 28 Nov 2000 18:22:54 +1300

Your problem may well be caused by NFS bugs but tagging is a dangerous
operation because of insufficient locking within cvs.

When cvs tags a file it does not request a write lock until it has
already parsed the rcs file. This means that any modification made by a
commit or another tag before the lock is obtained are lost when the file
is rewritten.

The simple fix would be to lock the entire collection of directories to
be tagged as in a commit operation. This might result in other users
having to wait to acquire a lock, but it is better than losing their
changes. A better fix might be to lock on a directory by directory
basis, instead of an entire tree but such a scheme would not validate
the entire tag operation before execution.



reply via email to

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