Permalink
Browse files

Made S3DataStore#store close its tempfile if it uses the filesystem.

  • Loading branch information...
1 parent 93e90b9 commit 8274c7fabdb4e57039a1e2e48380b4a8a083059e @zach zach committed with Mark Evans May 19, 2010
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/dragonfly/data_storage/s3data_store.rb
@@ -29,6 +29,7 @@ def store(temp_object)
ensure_initialized
object = use_filesystem ? temp_object.file : temp_object.data
S3Object.store(uid, object, bucket_name)
+ object.close if use_filesystem
uid
end

0 comments on commit 8274c7f

Please sign in to comment.