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

Re: svn completely looses file modifications due to FAT 2s time resolution (data loss!!?)

From: Greg Hudson <ghudson_at_MIT.EDU>
Date: 2004-07-13 05:45:30 CEST

On Mon, 2004-07-12 at 17:14, Ben Reser wrote:
> To prevent this we currently sleep for 1.1 seconds at the end of such
> operations.

No, we sleep until the second counter ticks, plus .1 seconds. (This
isn't necessarily a good idea, in hindsight. If the filesystem is
remotely mounted, I think the server's time is used for the mod time,
not the client's, so the tick of the client's clock isn't terribly
interesting.)

> b) Drop the sleep. Make the code that checks if a file is changed not
> accept that a file is unchanged without comparing the files when the
> timestamp of the file is within a certain range of the current time.

Meaningless. The issue is the interval between the end of the last svn
operation and the time of the modification. The amount of time which
has passed since then is irrelevant.

> c) Keep track of the oldest timestamp we write into the entries file.

The oldest? Surely you mean the newest.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Jul 13 05:46:15 2004

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.