[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: CVS update: subversion/subversion/include svn_fs.h

From: Greg Stein <gstein_at_lyra.org>
Date: 2000-09-09 22:52:07 CEST

On Sat, Sep 09, 2000 at 01:44:32PM -0700, Manoj Kasichainula wrote:
> On Sat, Sep 09, 2000 at 09:39:15AM -0700, Zack Weinberg wrote:
> > Also, TIME probably needs to be more precise than seconds since epoch,
> > because several transactions might arrive in one second. Adding the
> > microsecond count from gettimeofday() should be good enough.
>
> Why not just use an incremented counter (plus pid)? This avoids a
> system call per transaction, and is just simpler.

Considering that the PID/TID will be in there, then this makes a lot of
sense. For each PID/TID that generates a transaction ID, it will have a
monotonically increasing secondary component. No conflicts are possible.

This does rely on per-thread state, but that is easy enough to deal with.

Good call, Manoj.

Cheers,
-g

-- 
Greg Stein, http://www.lyra.org/
Received on Sat Oct 21 14:36:08 2006

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.