]> git.sur5r.net Git - bacula/bacula/commitdiff
Remove vestiges of rechdr_queue hopefully fixes bug #2180
authorKern Sibbald <kern@sibbald.com>
Tue, 17 Nov 2015 18:42:40 +0000 (10:42 -0800)
committerKern Sibbald <kern@sibbald.com>
Tue, 17 Nov 2015 18:42:40 +0000 (10:42 -0800)
bacula/src/stored/block.h
bacula/src/stored/block_util.c

index ff8f0851febbda7e96af80bb9e0c4a1d6cd3273b..a8552b0defa4cd9deeb8b49c4ddf10b5a3953155 100644 (file)
@@ -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 */
 };
 
index 7fc45d21181410234210a836a6e9ad4f2688a237..86e097d39a43e6b9a73e6fc3f761981141909fcd 100644 (file)
@@ -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);
    }