]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: cut short object read if a chunk returns error 1776/head
authorYehuda Sadeh <yehuda@inktank.com>
Tue, 6 May 2014 18:06:29 +0000 (11:06 -0700)
committerYehuda Sadeh <yehuda@inktank.com>
Tue, 6 May 2014 19:03:34 +0000 (12:03 -0700)
commit03b0d1cfb7bd30a77fedcf75eb06476b21b14e95
tree464588c83a5c673b1ed2ace8ef955142fa32b60e
parent650051cd17ac4de74c8167423b66f3b8657e603b
rgw: cut short object read if a chunk returns error

Fixes: #8289
Backport: firefly, dumpling
When reading an object, if we hit an error when trying to read one of
the rados objects then we should just stop. Otherwise we're just going
to continue reading the rest of the object, and since it can't be sent
back to the client (as we have a hole in the middle), we end up
accumulating everything in memory.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
src/rgw/rgw_rados.cc