about summary refs log tree commit homepage
path: root/lib/mogilefs/pool.rb
DateCommit message (Collapse)
2011-12-08pool: 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.
2011-12-08pool: O(1) object validity checking
Now that pools can be arbitrarily large, using an O(n) check for object validity can be expensive.
2011-12-08pool: add @purge_threshold, @purge_keep accessors
Instead of hard coding the thresholds, allow users to change accessors
2011-11-07avoid circular requires
Ruby 1.9.3 considers them harmful
2009-11-20set encoding: binary for all files
We won't trust Ruby 1.9 String weirdness since data storage is locale-agnostic
2009-02-07MogileFS::Pool#use always returns nil
We don't want to return the used object back to the caller. Noticed during 1.9.1 compatibility testing.
2009-01-23Remove unnecessary statements and temp variables
Last I checked, the trailing "return" is not optimized away by MRI 1.8. Additionally, remove some useless temporary variables.
2008-03-21Import mogilefs-client converted to Hoe.
From p4 revision #3336 git-svn-id: http://seattlerb.rubyforge.org/svn/mogilefs-client/dev@376 d2e05cf2-00e0-46e5-a3de-bbee4d6b9404