Bugfix for restore.pl.
authorMichael Vrable <mvrable@cs.ucsd.edu>
Thu, 17 May 2007 05:27:31 +0000 (22:27 -0700)
committerMichael Vrable <mvrable@turin.ucsd.edu>
Thu, 17 May 2007 05:27:31 +0000 (22:27 -0700)
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.

restore.pl

index c7b4cca..53b48dc 100755 (executable)
@@ -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);
         }