Don't optimize the accounting chain

This commit is contained in:
Tom Eastep 2011-02-03 08:45:54 -08:00
parent c44283d088
commit 98ad7e15b0

View File

@ -1267,7 +1267,7 @@ sub ensure_accounting_chain( $$ )
$chainref->{accounting} = 1; $chainref->{accounting} = 1;
$chainref->{referenced} = 1; $chainref->{referenced} = 1;
$chainref->{ipsec} = $ipsec; $chainref->{ipsec} = $ipsec;
$chainref->{dont_optimize} = 1 unless $config{OPTIMIZE_ACCOUNTING}; $chainref->{dont_optimize} = 1 unless $config{OPTIMIZE_ACCOUNTING} && $chain ne 'accounting';
if ( $chain ne 'accounting' ) { if ( $chain ne 'accounting' ) {
my $file = find_file $chain; my $file = find_file $chain;