From: Laurent Papier Date: Tue, 28 Jun 2011 12:16:13 +0000 (+0200) Subject: Fix brestore compilation from previous patch X-Git-Tag: Release-7.0.0~888 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=b47cd850fb1a15a7cf5159a6b76acc128b6ee558;p=bacula%2Fbacula Fix brestore compilation from previous patch --- diff --git a/bacula/src/stored/bextract.c b/bacula/src/stored/bextract.c index d28f0f0a6a..e3f30fafca 100644 --- a/bacula/src/stored/bextract.c +++ b/bacula/src/stored/bextract.c @@ -545,6 +545,11 @@ static bool record_cb(DCR *dcr, DEV_RECORD *rec) extract = false; return true; } + Dmsg2(100, "Write uncompressed %d bytes, total before write=%d\n", compress_len, total); + store_data(&bfd, compress_buf, compress_len); + total += compress_len; + fileAddr += compress_len; + Dmsg2(100, "Compress len=%d uncompressed=%d\n", rec->data_len, compress_len); break; #endif default: @@ -553,12 +558,6 @@ static bool record_cb(DCR *dcr, DEV_RECORD *rec) return true; } - Dmsg2(100, "Write uncompressed %d bytes, total before write=%d\n", compress_len, total); - store_data(&bfd, compress_buf, compress_len); - total += compress_len; - fileAddr += compress_len; - Dmsg2(100, "Compress len=%d uncompressed=%d\n", rec->data_len, - compress_len); } break;