]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: involve next on RGWGetObj_BlockDecrypt::flush
authorSeena Fallah <seenafallah@gmail.com>
Sat, 7 Jun 2025 19:57:12 +0000 (21:57 +0200)
committerSeena Fallah <seenafallah@gmail.com>
Wed, 19 Nov 2025 17:37:37 +0000 (18:37 +0100)
Co-authored-by: Marcus Watts <mwatts@redhat.com>
Signed-off-by: Seena Fallah <seenafallah@gmail.com>
src/rgw/rgw_crypt.cc

index dd139bb0d231be08644a5da53fdc78a713fbd890..880c34d44e80b91ada38d2cd7bd6600beafdee50 100644 (file)
@@ -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,