btrbk: get_related_readonly_nodes: vastly increase abort_distance

It's not uncommon to have a large intact parent-chain on targets
(e.g. target_preserve_min=all).

If this is the case, performance drops a bit on "btrbk archive".
Note that we could limit the search depth in get_best_parent() for
some performance improvements, as this only affects extra clones.
pull/286/head
Axel Burri 2019-05-03 15:35:25 +02:00
parent 37b0bd3477
commit b62bb3b1a8
1 changed files with 1 additions and 1 deletions

2
btrbk
View File

@ -3139,7 +3139,7 @@ sub get_related_readonly_nodes($;@)
my $parent_uuid_hash = $vol->{node}{TREE_ROOT}{PARENT_UUID_HASH};
my $node = $vol->{node};
my $uuid = $node->{uuid};
my $abort_distance = 256;
my $abort_distance = 4096;
# climb up parent chain
my $distance = 0; # parent distance