[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: Jonathan S. Shapiro <shap_at_eros-os.org>
Date: 2000-09-10 00:47:48 CEST

> > 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.
>
> I'll try to do the right thing. If I do the wrong thing, please
> submit a patch.

On x86 class machines, the microsecond field reports microseconds, but is
frequently updated every millisecond (or less often). This is significantly
more coarse than the network stack end to end latency, and I have witnessed
collisions at this granularity. If the use of the gettimeofday() call is to
obtain a transaction ID, use a transaction ID. Don't rely on gettimeofday()
for this purpose.

shap
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.