]> git.sur5r.net Git - bacula/bacula/commitdiff
Tweak record write state
authorKern Sibbald <kern@sibbald.com>
Wed, 27 Jun 2012 11:29:24 +0000 (13:29 +0200)
committerKern Sibbald <kern@sibbald.com>
Sat, 20 Apr 2013 12:50:51 +0000 (14:50 +0200)
bacula/src/stored/record.c

index a25abad052d977af09be7917f518186653b92ab9..d9be009a53fc015198a15e74685563538d0217b4 100644 (file)
@@ -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 */