From 94542de7ec2b9d3f6bb54cfe1c45a7d85e7bb7ba Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Wed, 27 Jun 2012 13:29:24 +0200 Subject: [PATCH] Tweak record write state --- bacula/src/stored/record.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/bacula/src/stored/record.c b/bacula/src/stored/record.c index a25abad052..d9be009a53 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 */ -- 2.39.5