From: Michael Vrable Date: Thu, 17 May 2007 05:27:31 +0000 (-0700) Subject: Bugfix for restore.pl. X-Git-Url: https://git.vrable.net/?a=commitdiff_plain;h=6240d91b29e35bed5308139eb63c9cac7c3578fd;p=cumulus.git Bugfix for restore.pl. Indirect references to data blocks were not being properly handled, so large files (those using an indirect reference to the data) were not restored properly. This was at least caught by the checksums, so no data was ever silently corrupted. --- diff --git a/restore.pl b/restore.pl index c7b4cca..53b48dc 100755 --- a/restore.pl +++ b/restore.pl @@ -166,7 +166,7 @@ sub iterate_objects { next if $obj eq ""; if ($obj =~ /^@(\S+)$/) { my $indirect = load_ref($1); - iterate_objects($callback, $arg, $1, $recursion_level + 1); + iterate_objects($callback, $arg, $indirect, $recursion_level + 1); } else { &$callback($arg, $obj); }