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

Re: [BUG?] svn_fs__dag_remove_node does not cleanup all references to the deleted node

From: C. Michael Pilato <cmpilato_at_collab.net>
Date: 2004-03-15 21:03:08 CET

kfogel@collab.net writes:

> It shouldn't be possible for a copy to have a source in the same
> revision in which the copy is committed. That is, the "history" in an
> add-with-history can only refer to nodes in committed revisions, not
> new nodes in the same txn as the add.
>
> So, this shouldn't be a problem... ?

No, Max's point is that we never remove anything from the changes
table or copies table unless the transaction is aborted. So, because
you can repeatedly add and delete the same path within a single
transaction, each of those additions and deletions gets a 'changes'
table line -- but by the end of it all, most of the node-ids referred
to in those changes no longer exist. The same problem occurs with
copies -- if you do "copy foo bar, delete bar, copy foo bar, delete
bar..." we'll have 'copies' table rows that refer to node-ids that
have already been removed.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Mar 15 21:04:31 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.