RE: Moves in FSFS
From: Bert Huijben <bert_at_qqmail.nl>
Date: Sun, 29 Sep 2013 20:46:17 +0200
Hi Stefan,
Are you sure there are no behavior changes by changing this?
If you copy nodes at every level the resulting nodes are the same as when
With just the snippets in this thread I can't find a true answer and I need
Bert
From: Stefan Fuhrmann [mailto:stefan.fuhrmann_at_wandisco.com]
On Sun, Sep 29, 2013 at 2:08 AM, Bill Tutt <bill_at_tutts.org
On a slightly different note I noticed this oddity in lib_fs_fs/dag.c from
703
jpieper
if (is_parent_copyroot)
704
jpieper
{
705
danielsh
SVN_ERR(get_node_revision(&parent_noderev, parent));
706
jpieper
noderev->copyroot_rev = parent_noderev->copyroot_rev;
707
kfogel
noderev->copyroot_path = apr_pstrdup(pool,
708
parent_noderev->copyroot_path);
709
jpieper
}
710
hwright
711
jpieper
noderev->copyfrom_path = NULL;
712
noderev->copyfrom_rev = SVN_INVALID_REVNUM;
713
hwright
Sure looks like a useless memory allocation from the APR pool for
As well as this earlier in the same file:
394
kfogel
new_noderev.copyroot_path = apr_pstrdup(pool,
395
parent_noderev->copyroot_path);
396
jpieper
new_noderev.copyroot_rev = parent_noderev->copyroot_rev;
397
new_noderev.copyfrom_rev = SVN_INVALID_REVNUM;
398
new_noderev.copyfrom_path = NULL;
Wow, this has been here for ages... :)
Thanks Bill for spotting this. Fixed in r1527344.
-- Stefan^2.
|
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.