[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Gnu-arch-users] [BUG] can get duplicate explicit IDs if adding fast
Re: [Gnu-arch-users] [BUG] can get duplicate explicit IDs if adding fast enough
Wed, 19 May 2004 10:43:02 -0400
Mozilla Thunderbird 0.5 (X11/20040309)
Jonathan Geisler wrote:
On Tue, May 18, 2004 at 05:03:52PM -0400, Aaron Bentley wrote:
There's a very simple way to get a guaranteed unique ID; use a sequence
number. This would require an extra file (with locking protocol), or
else a tree-inventory for every add.
And to truly work across branches, this would require the locking
protocol to take into account adds being made in any location and
therefore some sort of centralized server to pass out these unique
I think you're over-stating. If sequence numbers were used, they could
be uniqe per-machine. If the timestamp and id were retained, the
combination of time, sequence and id would be unique across branches.
(Unless two people with the same ID add files in two branches at the
same exact time!)
It seems that uuidgen is the best solution due to the lower
chances of an ID collision.
I agree with that, though.
Director of Technology