]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/stored/bsr.h
Fix SD crash due to mismatched lock/unlock in error condition
[bacula/bacula] / bacula / src / stored / bsr.h
index 9e594dedfe1703de3a33c1860a9c65c8d5fb0473..304de114d369c701aaa0ed168f7c62a8ac8d9cbd 100644 (file)
@@ -106,6 +106,12 @@ struct BSR_VOLBLOCK {
    bool done;                         /* local done */
 };
 
+struct BSR_VOLADDR {
+   BSR_VOLADDR *next;
+   uint64_t saddr;                   /* start address */
+   uint64_t eaddr;                   /* end address */
+   bool done;                        /* local done */
+};
 
 struct BSR_FINDEX {
    BSR_FINDEX *next;
@@ -157,6 +163,7 @@ struct BSR {
    uint32_t      found;               /* count of restored files this bsr */
    BSR_VOLFILE  *volfile;
    BSR_VOLBLOCK *volblock;
+   BSR_VOLADDR  *voladdr;
    BSR_SESSTIME *sesstime;
    BSR_SESSID   *sessid;
    BSR_JOBID    *JobId;