]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: cut short object read if a chunk returns error
authorYehuda Sadeh <yehuda@inktank.com>
Tue, 6 May 2014 18:06:29 +0000 (11:06 -0700)
committerYehuda Sadeh <yehuda@inktank.com>
Mon, 9 Jun 2014 17:41:15 +0000 (10:41 -0700)
commit558249c519225d5e6d0784da20fe12d8f5d71cd2
tree0024a68f4aaaeed39b8903547ec187e9ef2a0194
parenta948ce2f9ccf67d5ccc690b5c326af19b6e6da4d
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>
(cherry picked from commit 03b0d1cfb7bd30a77fedcf75eb06476b21b14e95)
src/rgw/rgw_rados.cc