Merge pull request #43870 from basepi/azurefs

[bugfix] Add hash cache invalidation to azurefs
This commit is contained in:
Nicole Thomas 2017-10-03 15:03:27 -04:00 committed by GitHub
commit 484220e177

View file

@ -265,6 +265,11 @@ def update():
os.unlink(lk_fn)
except Exception:
pass
try:
hash_cachedir = os.path.join(__opts__['cachedir'], 'azurefs', 'hashes')
shutil.rmtree(hash_cachedir)
except Exception:
log.exception('Problem occurred trying to invalidate hash cach for azurefs')
def file_hash(load, fnd):