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

Re: trivial yet very serious bug, suggestions welcome

From: Greg Hudson <ghudson_at_MIT.EDU>
Date: 2001-10-28 02:44:47 CEST

[Regarding writing a timestamp epsilon in the future:]
> Right. The suggestion just moves the time point, but doesn't really
> solve the underlying issue.

I don't think it even moves the time point.

>> Touching the checked out files so that their last modified time is
>> 1s in the past is another solution.

> You would then have a bunch of false hits, need to checksum the
> files, and then update the timestamps to avoid future false hits. I
> like the delay idea much better.

Eh? I must not have been clear. You:

  Write the file
  Adjust the mod time of the file down by 1s
  Record the decremented mod time

No false hits and no extra checksumming. But it's still a lie, and
could cause problems in some very high-speed situations. The delay
idea is more correct, though it is also performance-limiting.
(Admittedly, the cases where it causes a serious performance problem
are probably also the situations where it's dangerous to lie about
timestamps.)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Oct 21 14:36:46 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.