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

Re: svn commit: r1464769 - in /subversion/trunk/subversion/libsvn_client: revert.c switch.c update.c

From: Julian Foad <julianfoad_at_btopenworld.com>
Date: Fri, 5 Apr 2013 18:29:36 +0100 (BST)

Philip Martin wrote:

> Julian Foad <julianfoad_at_btopenworld.com> writes:
>
>>   * Near past: The recorded commit time, compared with  the client-side
>>     clock time, is within the timestamp granularity and in the past.
>>
>>     - We do need to sleep.
>>     - My earlier commit eliminated the sleep, which broke this case.
>>     - This commit fixes this case.
>>
>> That second scenario is likely after a commit from the local client,
>> and when doing rapid work across multiple clients, assuming the
>> client(s) and server clocks are sufficiently well synchronized which
>> seems a reasonable assumption if you expect that sort of thing to
>> work.
>
> How are the people using use-commit-times=yes synchronizing clocks?

NTP or similar mechanisms, I assume.

> I would suspect that some (lots?) don't do anything and have large skew.
> I also suspect most users get the 1ms sleep these days and so even those
> that do synchronize won't get much benefit from sleeping.  I run ntp on
> my machine and it currently reports an estimated error of about 7ms.
> That's not good enough for sleeping to work when the sleep is only 1ms.

Fair point, so it won't significantly help people who get a 1ms sleep.  My "near past" argument above works for people who get a one-second sleep, such as myself, assuming synchronization to within a fraction of a second.

> I still think it's odd to sleep when use-commit-times=yes but not enough
> to change it :)

I agree it's odd, but without a substantial re-work to note the actual timestamps that we're recording (in libsvn_wc), the best we can do is choose either to sleep or not to sleep.  To summarize how we're leaving it now, we're calling the sleep function regardless of use-commit-times setting, for all commands that sleep.  Compared with how it was before my two commits, the only change in this respect is removing the exception that previously 'revert' was skipping the sleep if using commit times, while the other operations were sleeping regardless.

- Julian
Received on 2013-04-05 19:30:22 CEST

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.