Merge lp://qastaging/~ewanmellor/glance/lp698316 into lp://qastaging/~hudson-openstack/glance/trunk
Proposed by
Ewan Mellor
Status: | Rejected |
---|---|
Rejected by: | Jay Pipes |
Proposed branch: | lp://qastaging/~ewanmellor/glance/lp698316 |
Merge into: | lp://qastaging/~hudson-openstack/glance/trunk |
Diff against target: |
40 lines (+8/-5) 2 files modified
glance/server.py (+1/-1) glance/store/filesystem.py (+7/-4) |
To merge this branch: | bzr merge lp://qastaging/~ewanmellor/glance/lp698316 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Jay Pipes (community) | Disapprove | ||
Review via email:
|
Commit message
Bug #698316: Glance reads the whole image into memory when handling a POST /images request
Change the store API so that add takes a file-like object, not a string. This avoids loading the whole request body into memory before writing it out, and allows us to stream it instead.
Description of the change
Change the store API so that add takes a file-like object, not a string. This avoids loading the whole request body into memory before writing it out, and allows us to stream it instead.
To post a comment you must log in.
Hi!
Looks good, but could I ask you to put in a test case for this? thanks!
-jay