]> 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)
committerSage Weil <sage@inktank.com>
Wed, 7 May 2014 22:03:52 +0000 (15:03 -0700)
commite0fb2e63074d5f71679bb68656336f68e8190f39
treeac156fa2d73d49f4a6a71cb5f283962432244209
parent328665db17bf87d36a3dcbf5f0d0d1a9410e2f96
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