Changeset 461
- Timestamp:
- 02/20/13 16:59:41 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tiny-import.pl
r396 r461 85 85 my %cnt; 86 86 my @deferred; 87 my $converted = 0; 87 88 my $errstr = ''; 88 89 … … 167 168 168 169 # .. but we can at least say how many records weren't imported. 169 print "$ok OK, ".scalar(@deferred)." deferred records in $flatfile\n";170 $#deferred = -1;171 170 print "$ok OK, ".scalar(@deferred)." deferred, $converted downconverted records in $flatfile\n"; 171 undef @deferred; 172 $converted = 0; 172 173 173 174 # Sub for various nonstandard types with lots of pure bytes expressed in octal … … 273 274 $recsth->execute($fparent, $rparent, $host, 65280, $ip, 0, 0, 0, $ttl, $loc); 274 275 } else { 275 push @deferred, $rec unless $nodefer; 276 $impok = 0; 277 # print "$tmporig deferred; can't find both forward and reverse zone parents\n"; 276 if ($importcfg{conv}) { 277 # downconvert A+PTR if forward zone is not found 278 $recsth->execute(0, $rparent, $host, 12, $ip, 0, 0, 0, $ttl, $loc); 279 $converted++; 280 } else { 281 push @deferred, $rec unless $nodefer; 282 $impok = 0; 283 # print "$tmporig deferred; can't find both forward and reverse zone parents\n"; 284 } 278 285 } 279 286
Note:
See TracChangeset
for help on using the changeset viewer.