[Pkg-puppet-devel] [SCM] Puppet packaging for Debian branch, upstream, updated. 2.6.1rc1-141-gcdb2b90

Markus Roberts Markus at reality.com
Mon Aug 16 12:48:33 UTC 2010


The following commit has been merged in the upstream branch:
commit 4065e81f76020c29ed8ccfc1cf6c481aa202cb23
Author: Brice Figureau <brice-puppet at daysofwonder.com>
Date:   Sun Jul 25 18:09:33 2010 +0200

    Fix race condition in rack autoloading of request/response
    
    Ruby autoloader seems to not be thread-safe. Since rack uses it to lazily
    load the Rack::Request and Rack::Response classes, on jruby it fails
    if the first compilation is done with multiple concurrent threads.
    
    Signed-off-by: Brice Figureau <brice-puppet at daysofwonder.com>

diff --git a/lib/puppet/network/http/rack.rb b/lib/puppet/network/http/rack.rb
index c18a075..5b4ef7e 100644
--- a/lib/puppet/network/http/rack.rb
+++ b/lib/puppet/network/http/rack.rb
@@ -1,3 +1,6 @@
+require 'rack'
+require 'rack/request'
+require 'rack/response'
 
 require 'puppet/network/http'
 require 'puppet/network/http/rack/rest'

-- 
Puppet packaging for Debian



More information about the Pkg-puppet-devel mailing list