From b38b7bd9cb45a6a4687ba146a3daecb072ba07d9 Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Tue, 17 Nov 2015 10:42:40 -0800 Subject: [PATCH] Remove vestiges of rechdr_queue hopefully fixes bug #2180 --- bacula/src/stored/block.h | 1 - bacula/src/stored/block_util.c | 2 -- 2 files changed, 3 deletions(-) diff --git a/bacula/src/stored/block.h b/bacula/src/stored/block.h index ff8f0851fe..a8552b0def 100644 --- a/bacula/src/stored/block.h +++ b/bacula/src/stored/block.h @@ -127,7 +127,6 @@ struct DEV_BLOCK { int32_t rechdr_items; /* number of items in rechdr queue */ char *bufp; /* pointer into buffer */ char ser_buf[BLKHDR2_LENGTH]; /* Serial buffer for data */ - POOLMEM *rechdr_queue; /* record header queue */ POOLMEM *buf; /* actual data buffer */ }; diff --git a/bacula/src/stored/block_util.c b/bacula/src/stored/block_util.c index 7fc45d2118..86e097d39a 100644 --- a/bacula/src/stored/block_util.c +++ b/bacula/src/stored/block_util.c @@ -135,7 +135,6 @@ DEV_BLOCK *new_block(DEVICE *dev) */ block->buf_len = len; block->buf = get_memory(block->buf_len); - block->rechdr_queue = get_memory(block->buf_len); block->rechdr_items = 0; empty_block(block); block->BlockVer = BLOCK_VER; /* default write version */ @@ -187,7 +186,6 @@ void free_block(DEV_BLOCK *block) if (block) { Dmsg1(999, "free_block buffer %x\n", block->buf); free_memory(block->buf); - free_memory(block->rechdr_queue); Dmsg1(999, "free_block block %x\n", block); free_memory((POOLMEM *)block); } -- 2.39.5