From: Seena Fallah Date: Sat, 7 Jun 2025 19:57:12 +0000 (+0200) Subject: rgw: involve next on RGWGetObj_BlockDecrypt::flush X-Git-Tag: testing/wip-vshankar-testing-20260219.051425~1^2~4^2~14 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=bfa58a6354307aae4888c488f667255c5f06ebf0;p=ceph-ci.git rgw: involve next on RGWGetObj_BlockDecrypt::flush Co-authored-by: Marcus Watts Signed-off-by: Seena Fallah --- diff --git a/src/rgw/rgw_crypt.cc b/src/rgw/rgw_crypt.cc index dd139bb0d23..880c34d44e8 100644 --- a/src/rgw/rgw_crypt.cc +++ b/src/rgw/rgw_crypt.cc @@ -826,8 +826,15 @@ int RGWGetObj_BlockDecrypt::flush() { // flush up to block boundaries, aligned or not if (cache.length() > 0) { res = process(cache, part_ofs, cache.length()); + if (res < 0) { + return res; + } } - return res; + + if (next) + return next->flush(); + + return 0; } RGWPutObj_BlockEncrypt::RGWPutObj_BlockEncrypt(const DoutPrefixProvider *dpp,