Issue154

Title race between undo and all readers
Priority bug Status resolved
Superseder Nosy List ThomasAH, bos, junkblocker, kupfer, tonfa
Assigned To Topics

Created on 2006-03-06.01:35:24 by bos, last changed 2006-04-17.01:49:10 by junkblocker.

Files
File name Uploaded Type Edit Remove
undo_doc.diff tonfa, 2006-04-01.05:15:00 text/plain
Messages
msg994 (view) Author: ThomasAH Date: 2006-04-08.10:19:18
in main
msg944 (view) Author: ThomasAH Date: 2006-04-04.08:13:34
in crew
msg932 (view) Author: ThomasAH Date: 2006-04-03.20:36:04
+1 from me, too, please push to crew
msg915 (view) Author: bos Date: 2006-04-02.04:59:54
On Sat, 2006-04-01 at 05:15 +0000, Benoit Boissinot wrote:

> Please comment about the wording, grammar, etc.

+1
msg905 (view) Author: tonfa Date: 2006-04-01.05:15:00
Please comment about the wording, grammar, etc.

thanks,

Benoit
msg628 (view) Author: bos Date: 2006-03-06.01:35:20
We don't currently lock the repository for reading, so localrepository.lock() is
in effect a write lock.

This is fine in most cases, except the undo command.  It locks the repository,
so it can't race with any writers.  But it will race with all readers :-(

I don't think this has serious consequences.  Corruption due to a race between
an outgoing pull and an undo should just result in the transaction rolling back
at the destination.

My vote would be to just document this race in the undo man page entry, and not
actually change the code (adding read locks would suck).
History
Date User Action Args
2006-04-17 01:49:10junkblockersetnosy: + junkblocker
2006-04-08 10:19:19ThomasAHsetstatus: testing -> resolved
nosy: bos, ThomasAH, tonfa, kupfer
messages: + msg994
2006-04-04 08:13:34ThomasAHsetstatus: in-progress -> testing
nosy: bos, ThomasAH, tonfa, kupfer
messages: + msg944
2006-04-03 20:36:05ThomasAHsetstatus: chatting -> in-progress
nosy: + ThomasAH
messages: + msg932
2006-04-02 04:59:58bossetnosy: bos, tonfa, kupfer
messages: + msg915
2006-04-01 05:15:00tonfasetfiles: + undo_doc.diff
status: unread -> chatting
messages: + msg905
nosy: + tonfa
2006-03-29 22:37:15kupfersetnosy: + kupfer
2006-03-06 01:35:24boscreate