From b47cd850fb1a15a7cf5159a6b76acc128b6ee558 Mon Sep 17 00:00:00 2001 From: Laurent Papier Date: Tue, 28 Jun 2011 14:16:13 +0200 Subject: [PATCH] Fix brestore compilation from previous patch --- bacula/src/stored/bextract.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) 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; -- 2.39.5