]> git.sur5r.net Git - bacula/bacula/commitdiff
Fix brestore compilation from previous patch
authorLaurent Papier <papier@tuxfan.net>
Tue, 28 Jun 2011 12:16:13 +0000 (14:16 +0200)
committerKern Sibbald <kern@sibbald.com>
Sat, 20 Apr 2013 12:49:03 +0000 (14:49 +0200)
bacula/src/stored/bextract.c

index d28f0f0a6aa7905c418dd8f38cd114f95677b22e..e3f30fafca58eb2c829340d25821a3326b9b6d54 100644 (file)
@@ -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;