master/emongo — pull request #2 by jdhood1 (2011-11-10 21:59:00+00:00)
Title: Ability to turn off Auto Reconnect in emongo_pool

Hey Oleg,

I have a requirement to let the application die if it cannot connect to or loses its connection to the DB. That way another program can report that problem to a UI and restart the application. The only way I could think of to do that was to add the ability to turn off auto reconnect in emongo_pool. That causes the emongo_sup to retry starting it a few times and then give up. That causes the app to die, which, in turn, causes my app to die because I started emongo with the Type field to 'permanent'. If there's a better way, please let me know.

I also noticed a bug with find_and_modify's 'fields' option. I noticed and removed an unused function in the performance test I recently added.

Jeremy