Merge pull request #5 from ceph/wip-migrate-test1

generate_objects: use rewind=True in upload_objects
This commit is contained in:
Yehuda Sadeh 2013-03-01 15:54:04 -08:00
commit c4ec072682

View file

@ -46,7 +46,7 @@ def upload_objects(bucket, files, seed):
print >> sys.stderr, 'sending file with size %dB' % fp.size print >> sys.stderr, 'sending file with size %dB' % fp.size
key = Key(bucket) key = Key(bucket)
key.key = name_generator.next() key.key = name_generator.next()
key.set_contents_from_file(fp) key.set_contents_from_file(fp, rewind=True)
key.set_acl('public-read') key.set_acl('public-read')
keys.append(key) keys.append(key)