From ee0cc07544df334cdc549907b4dca8d8d115b7b7 Mon Sep 17 00:00:00 2001 From: Luke Kanies Date: Mon, 12 Apr 2010 22:33:32 -0700 Subject: Fixing #3533 - Removing all transaction cleanup It's really slow and has no actual functionality any more, since we just remove the catalogs from memory anyway. This should be a good speed boost for very little effort. Signed-off-by: Luke Kanies --- lib/puppet/resource/catalog.rb | 7 ------- 1 file changed, 7 deletions(-) (limited to 'lib/puppet/resource') diff --git a/lib/puppet/resource/catalog.rb b/lib/puppet/resource/catalog.rb index 048920458..6aeda0957 100644 --- a/lib/puppet/resource/catalog.rb +++ b/lib/puppet/resource/catalog.rb @@ -158,7 +158,6 @@ class Puppet::Resource::Catalog < Puppet::SimpleGraph ensure @applying = false cleanup() - transaction.cleanup if defined? transaction and transaction end # Are we in the middle of applying the catalog? @@ -506,12 +505,6 @@ class Puppet::Resource::Catalog < Puppet::SimpleGraph private def cleanup - unless @transient_resources.empty? - remove_resource(*@transient_resources) - @transient_resources.clear - @relationship_graph = nil - end - # Expire any cached data the resources are keeping. expire() end -- cgit