]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/osd/ReplicatedBackend.cc
import ceph 14.2.5
[ceph.git] / ceph / src / osd / ReplicatedBackend.cc
index 550dc848d82dd71fa45faa740f84ec2be240af88..f8d67af325ba4243c20905ae2016355b9dcaa4bd 100644 (file)
@@ -2006,7 +2006,8 @@ int ReplicatedBackend::build_push_op(const ObjectRecoveryInfo &recovery_info,
     }
     out_op->data.claim_append(bit);
   }
-  if (progress.first && out_op->data_included.begin().get_start() == 0 &&
+  if (progress.first && !out_op->data_included.empty() &&
+      out_op->data_included.begin().get_start() == 0 &&
       out_op->data.length() == oi.size && oi.is_data_digest()) {
     uint32_t crc = out_op->data.crc32c(-1);
     if (oi.data_digest != crc) {