]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: RGWPostObj::execute() may lost data. 42330/head
authorLei Zhang <1091517373@qq.com>
Wed, 14 Jul 2021 09:30:48 +0000 (17:30 +0800)
committerLei Zhang <1091517373@qq.com>
Wed, 14 Jul 2021 09:42:48 +0000 (17:42 +0800)
Signed-off-by: Lei Zhang <1091517373@qq.com>
src/rgw/rgw_op.cc

index 167ad3593e446542e84ef1f89c3999c82b180db4..b0945742c6faf57f7d48d0c7cc8f75b296fba8d6 100644 (file)
@@ -4284,6 +4284,9 @@ void RGWPostObj::execute(optional_yield y)
 
       hash.Update((const unsigned char *)data.c_str(), data.length());
       op_ret = filter->process(std::move(data), ofs);
+      if (op_ret < 0) {
+        return;
+      }
 
       ofs += len;