Skip to content
Permalink
Browse files

Merge pull request #269 from arogge/fix-1111-master

core: reset cache on invalidate vol_list->contents
  • Loading branch information...
arogge committed Sep 17, 2019
2 parents 2acb339 + a9293f1 commit e8c6509a468e008d8ea871ed55c27f435c00aa94
Showing with 3 additions and 0 deletions.
  1. +3 −0 core/src/dird/storage.cc
@@ -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); }

0 comments on commit e8c6509

Please sign in to comment.
You can’t perform that action at this time.