Skip to content

Commit

Permalink
ndmp_tape: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
pstorz authored and arogge committed Feb 24, 2022
1 parent 6099ca5 commit f54a490
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions core/src/stored/ndmp_tape.cc
Expand Up @@ -385,9 +385,7 @@ static inline bool bndmp_read_data_from_block(JobControlRecord* jcr,
if (rctx->rec->FileIndex < 0) { continue; }

DeviceRecord* rec = rctx->rec;
// Perform record translations only if data is compressed
// as NDMP needs to be decompressed in any case
// if (rctx->rec->maskedStream == STREAM_COMPRESSED_DATA) {

dcr->before_rec = rctx->rec;
dcr->after_rec = NULL;

Expand All @@ -408,7 +406,6 @@ static inline bool bndmp_read_data_from_block(JobControlRecord* jcr,
Dmsg1(400, _("recstream: %d, rctxstream: %d .\n"), rec->maskedStream,
rctx->rec->maskedStream);
}
// } // not compressed, go on

switch (rec->maskedStream) {
case STREAM_UNIX_ATTRIBUTES: // Start of the dump, read the next record.
Expand Down

0 comments on commit f54a490

Please sign in to comment.