125 |
); |
); |
126 |
} |
} |
127 |
|
|
128 |
for ( 0 ... $input_db->size ) { |
foreach my $pos ( 0 ... $input_db->size ) { |
129 |
|
|
130 |
my $row = $input_db->fetch || next; |
my $row = $input_db->fetch || next; |
131 |
|
|
132 |
my $mfn = $row->{'000'}->[0] || die "can't find MFN"; |
my $mfn = $row->{000}->[0] || $row->{000} || die "can't find MFN"; |
133 |
|
|
134 |
|
if ($mfn =~ m#^\d+$#) { |
135 |
|
$log->warn("record $pos doesn't have valid MFN but '$mfn', using $pos"); |
136 |
|
$mfn = $pos; |
137 |
|
$row->{000}->[0] = $pos; |
138 |
|
} |
139 |
|
|
140 |
my $ds = $n->data_structure($row); |
my $ds = $n->data_structure($row); |
141 |
|
|