]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
Allow to hangup/blowup inside a file for tests
authorEric Bollengier <eric@baculasystems.com>
Wed, 15 May 2019 08:51:01 +0000 (10:51 +0200)
committerEric Bollengier <eric@baculasystems.com>
Wed, 15 May 2019 08:51:43 +0000 (10:51 +0200)
bacula/src/filed/backup.c

index 7e001381de12dbeea207795170311705dd456089..4df5d2f5631431846dbcba8717bc3acea9570502 100644 (file)
@@ -759,6 +759,11 @@ bool process_and_send_data(bctx_t &bctx)
 
    jcr->ReadBytes += sd->msglen;         /* count bytes read */
 
+   /* Debug code: check if we must hangup or blowup */
+   if (handle_hangup_blowup(jcr, 0, jcr->ReadBytes)) {
+      goto err;
+   }
+
    /** Uncompressed cipher input length */
    bctx.cipher_input_len = sd->msglen;