mirror of https://github.com/digint/btrbk
btrbk: fix regression: undefined array reference when no received_uuid present
fixes #239 (@ian-kelling)pull/219/merge
parent
211943d4af
commit
a0f6b55d28
6
btrbk
6
btrbk
|
@ -2878,10 +2878,10 @@ sub _receive_target_nodes($$)
|
|||
|
||||
# match uuid/received_uuid combinations
|
||||
my @match;
|
||||
push(@match, @{ $received_uuid_hash->{$uuid} // [] }); # match src.uuid == target.received_uuid
|
||||
push(@match, @{ $received_uuid_hash->{$uuid} // [] }); # match src.uuid == target.received_uuid
|
||||
if($received_uuid) {
|
||||
push(@match, $uuid_hash->{$received_uuid} ); # match src.received_uuid == target.uuid
|
||||
push(@match, @{ $received_uuid_hash->{$received_uuid} }); # match src.received_uuid == target.received_uuid
|
||||
push(@match, $uuid_hash->{$received_uuid} ); # match src.received_uuid == target.uuid
|
||||
push(@match, @{ $received_uuid_hash->{$received_uuid} // [] }); # match src.received_uuid == target.received_uuid
|
||||
}
|
||||
|
||||
@ret = grep($_->{readonly}, @match);
|
||||
|
|
Loading…
Reference in New Issue