From: Kern Sibbald Date: Wed, 27 Jun 2012 11:29:24 +0000 (+0200) Subject: Tweak record write state X-Git-Tag: Release-5.2.10~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=da7d3847b249e79f90b80a000cfc6dd6a01a05b4;p=thirdparty%2Fbacula.git Tweak record write state --- diff --git a/bacula/src/stored/record.c b/bacula/src/stored/record.c index a25abad05..d9be009a5 100644 --- a/bacula/src/stored/record.c +++ b/bacula/src/stored/record.c @@ -444,10 +444,9 @@ bool write_record_to_block(DCR *dcr, DEV_RECORD *rec) * that did not previously fit into the block. */ if (!write_header_to_block(block, rec)) { - rec->state = st_header_cont; - return false; + return false; /* write block then come back here */ } - rec->state = st_data; + rec->state = st_data; /* after header, now write data */ continue; /* Write continuation header */