new_file allows optional :info hash to be populated
authorEric Wong <normalperson@yhbt.net>
Mon, 22 Oct 2012 20:18:06 +0000 (20:18 +0000)
committerEric Wong <normalperson@yhbt.net>
Mon, 22 Oct 2012 21:02:43 +0000 (21:02 +0000)
commit231d1a91292f39d42df2317a2fe4eaa96fd68f41
tree5a8d0a396448f0df28cdbf3b6293c7b51d18044e
parentc5d000337cdcbb15827258d6fd6b6830e8afcd59
new_file allows optional :info hash to be populated

This allows clients to avoid calling #file_info or #get_uris
immediate after uploading a file to MogileFS.  This can speed
things up for cache-using clients with write-through caching.
lib/mogilefs/mogilefs.rb
lib/mogilefs/new_file/common.rb
test/test_fresh.rb