pool: shutdown backend when purging
commit01c200204400c4373c5b5edeb11d1c70a8119795
authorEric Wong <normalperson@yhbt.net>
Fri, 9 Dec 2011 02:09:38 +0000 (8 18:09 -0800)
committerEric Wong <normalperson@yhbt.net>
Fri, 9 Dec 2011 02:19:24 +0000 (8 18:19 -0800)
treeeddc75bb91c852695266c9f72a3710dbfdf58960
parent00d7a3cca62b19c34df66b337582a7c15c4b4848
pool: shutdown backend when purging

If we started a connection, make sure it's stopped and the file
descriptor closed.  Relying on GC to close file descriptors is
unreliable with some GC implementations.
lib/mogilefs/pool.rb
test/test_pool.rb