mwmitchell/rsolr — pull request #64 by bdurand (2013-05-29 21:04:54+00:00)
Title: Replace autoload with explicit requires for thread safety.

I've been having mysterious problems with RSolr classes "losing" methods in a busy production environment. I've traced it down to the use of autoload in the RSolr module to load classes on demand. This method is not thread safe so when multiple threads try to load RSolr at the same time I end up with inconsistent classes in memory.

The fix is to use require to load the files when RSolr is required. I think this should be fine since if anyone is using RSolr they should eventually want all the classes loaded anyway.