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

Re: [TSVN] Status Cache Timeout (was: Query about how status cache works with its timeout)

From: SteveKing <steveking_at_gmx.ch>
Date: 2005-05-03 16:59:27 CEST

Norbert Unterberg wrote:

> I'd like to bring this issue back to your attention, in case you did not
> notice this mails last week.

I noticed. And I have been thinking about how to solve this ever since.
But unfortunately I haven't been able to find a reliable solution for
this yet.

> Russell Hind wrote:
>
> > I'm currently running nightly 3116. I have always and still see folders
> > that were marked as modified suddenly flicking back to unmodified in
> > explorer after a few minutes.
> [...]
> > A quick thought about what might be happening: I guess when the timeout
> > occurs, the status in the cache gets reset to unmodified until the items
> > actual status is known. Hence the folders return to 'unmodified' until
> > the crawl has completed again.

When the cache timeout hits, the status is actually changed to
'unversioned', but the status of the folder is immediately fetched
(non-recursively) before the overlay changes to unversioned.

> > A suggestion to improve this: When a timeout has occured for an item,
> > could the cache return its last known status until the new status is
> > known?
>
> What do you think? What is the current behaviour, and when Russel is
> right, can it be changed to behave like he suggests?

The problem here is: the cache get's the status of folders
non-recursively (otherwise it would be too slow to be useful). So, once
a folder hits the timeout, that folder status is fetched again, then
it's subfolders get crawled again. But the status is returned
immediately (it has to, otherwise the explorer would block too long).
Then the 'correct' status is returned as soon as all the subfolders are
crawled again, and that can take quite a while as you have seen.

Stefan

-- 
        ___
   oo  // \\      "De Chelonian Mobile"
  (_,\/ \_/ \     TortoiseSVN
    \ \_/_\_/>    The coolest Interface to (Sub)Version Control
    /_/   \_\     http://tortoisesvn.tigris.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Tue May 3 16:59:48 2005

This is an archived mail posted to the TortoiseSVN Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.