Skip to content

Commit

Permalink
Merge pull request #269 from arogge/fix-1111-master
Browse files Browse the repository at this point in the history
core: reset cache on invalidate vol_list->contents
  • Loading branch information
arogge committed Sep 17, 2019
2 parents 2acb339 + a9293f1 commit e8c6509
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/src/dird/storage.cc
Original file line number Diff line number Diff line change
Expand Up @@ -545,6 +545,9 @@ static inline void FreeVolList(changer_vol_list_t* vol_list)
{
vol_list_t* vl;

// make sure cache is treated as empty
vol_list->timestamp = 0;

if (vol_list->contents) {
foreach_dlist (vl, vol_list->contents) {
if (vl->VolName) { free(vl->VolName); }
Expand Down

0 comments on commit e8c6509

Please sign in to comment.