[prev in list] [next in list] [prev in thread] [next in thread] 

List:       fossil-dev
Subject:    Re: [fossil-dev] crosslink_end() time-fudging question
From:       Richard Hipp <drh () sqlite ! org>
Date:       2014-03-22 11:41:54
Message-ID: CALwJ=MyseU+CV-A0kuYfov3MWSuFt7ANn0bUgmsiD2bL11QbGg () mail ! gmail ! com
[Download RAW message or body]

On Sat, Mar 22, 2014 at 6:08 AM, Stephan Beal <sgbeal@googlemail.com> wrote:

> Hi, Richard,
>
> a question about this line:
>
> http://fossil-scm.org/index.html/artifact/a3f27c6bc39104d4?ln=1536
>
> what is the significance of the number 30 there? i understand what's
> generally going on there, just not he significance of the 30. Is it going
> back (up to) 30 checkins for the adjustment (stopping the first time it
> makes no changes)?
>

I think it is just a limit counter to avoid an infinite loop, in case a
situation were to arise where two check-in times kept getting nudged back
and forth but never converged on a stable solution.  IIRC, I never
encountered such a scenario, but the limit of 30 attempts was added just in
case.


-- 
D. Richard Hipp
drh@sqlite.org

[Attachment #3 (text/html)]

<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, \
Mar 22, 2014 at 6:08 AM, Stephan Beal <span dir="ltr">&lt;<a \
href="mailto:sgbeal@googlemail.com" \
target="_blank">sgbeal@googlemail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><div dir="ltr">Hi, Richard,<div><br></div><div>a question \
about this line:</div><div><br></div><div><a \
href="http://fossil-scm.org/index.html/artifact/a3f27c6bc39104d4?ln=1536" \
target="_blank">http://fossil-scm.org/index.html/artifact/a3f27c6bc39104d4?ln=1536</a></div>



<div><br></div><div>what is the significance of the number 30 there? i understand \
what&#39;s generally going on there, just not he significance of the 30. Is it going \
back (up to) 30 checkins for the adjustment (stopping the first time it makes no \
changes)?<span class="HOEnZb"><font color="#888888"></font></span><br>

</div></div></blockquote></div><br></div><div class="gmail_extra">I think it is just \
a limit counter to avoid an infinite loop, in case a situation were to arise where \
two check-in times kept getting nudged back and forth but never converged on a stable \
solution.  IIRC, I never encountered such a scenario, but the limit of 30 attempts \
was added just in case.<br>

</div><div class="gmail_extra"><br clear="all"><br>-- <br>D. Richard Hipp<br><a \
href="mailto:drh@sqlite.org" target="_blank">drh@sqlite.org</a> </div></div>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic