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

Re: working copy corruption when network connection lost

From: Karl Fogel <kfogel_at_newton.ch.collab.net>
Date: 2002-01-07 21:24:15 CET

Philip Martin <philip@codematters.co.uk> writes:
> That said I don't really see what the ref_count achieves. It goes up
> when subdirectories or files are opened, but these will be closed and
> the ref_count decremented before the directory is closed. Is there
> ever a case when close_directory calls decrement_ref_count and the
> ref_count does not equal 1? Something to do with postfix text deltas
> perhaps?

[I think I'm just confirming Ben's confirmation of your guess...]

Yes, it's for postfix text deltas. Those are the one exception to the
"nestiness" of the editor call sequence -- you can have a directory
closed before all the files in it are closed. This is what's actually
going on over the RA layer, so it seemed best to have the editor
reflect it, even if it costs some simplicity. Thus, we have to do ref
counting. :-)

-K

---------------------------------------------------------------------
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:55 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.