- Timestamp:
- 01/10/13 17:23:03 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/DNSDB.pm
r449 r450 4701 4701 } 4702 4702 4703 _printrec_tiny($datafile, 'n', \%recflags,4704 $dom, $host, $type, $val, $dist, $weight, $port, $ttl, $loc, $stamp);4705 4706 4703 _printrec_tiny(*ZONECACHE, 'n', \%recflags, 4707 4704 $dom, $host, $type, $val, $dist, $weight, $port, $ttl, $loc, $stamp) 4708 4705 if *ZONECACHE; 4706 4709 4707 # in case the zone shrunk, get rid of garbage at the end of the file. 4710 4708 truncate(ZONECACHE, tell(ZONECACHE)); … … 4712 4710 $recflags{$recid} = 1; 4713 4711 } # while ($recsth) 4714 } else { 4715 # domain not changed, stream from cache 4716 print $datafile $_ while <ZONECACHE>; 4717 } 4712 } 4713 # stream from cache, whether freshly created or existing 4714 print $datafile $_ while <ZONECACHE>; 4718 4715 close ZONECACHE; 4719 4716 # mark domain as unmodified … … 4757 4754 $soasth->execute($revid); 4758 4755 my (@zsoa) = $soasth->fetchrow_array(); 4759 _printrec_tiny($datafile,'y',\%recflags,$revzone,4760 $zsoa[0],$zsoa[1],$zsoa[2],$zsoa[3],$zsoa[4],$zsoa[5],$zsoa[6],$zsoa[8],'');4761 4756 _printrec_tiny(*ZONECACHE,'y',\%recflags,$revzone, 4762 4757 $zsoa[0],$zsoa[1],$zsoa[2],$zsoa[3],$zsoa[4],$zsoa[5],$zsoa[6],$zsoa[8],''); … … 4781 4776 $ttl = '' if $ttl == '0'; 4782 4777 4783 _printrec_tiny($datafile, 'y', \%recflags, $revzone,4784 $host, $type, $val, $dist, $weight, $port, $ttl, $loc, $stamp);4785 4778 _printrec_tiny(*ZONECACHE, 'y', \%recflags, $revzone, 4786 4779 $host, $type, $val, $dist, $weight, $port, $ttl, $loc, $stamp) 4787 4780 if *ZONECACHE; 4788 # in case the zone shrunk, get rid of garbage at the end of the file. 4789 truncate(ZONECACHE, tell(ZONECACHE)); 4781 4782 # in case the zone shrunk, get rid of garbage at the end of the file. 4783 truncate(ZONECACHE, tell(ZONECACHE)); 4790 4784 4791 4785 $recflags{$recid} = 1; 4792 4786 } # while ($recsth) 4793 } else { 4794 # zone not changed, stream from cache 4795 print $datafile $_ while <ZONECACHE>; 4796 } 4787 } 4788 # stream from cache, whether freshly created or existing 4789 print $datafile $_ while <ZONECACHE>; 4797 4790 close ZONECACHE; 4798 # mark domainas unmodified4791 # mark zone as unmodified 4799 4792 $zonesth->execute($revid); 4800 4793 } # while ($domsth)
Note:
See TracChangeset
for help on using the changeset viewer.