Add hash cache invalidation to azurefs

This commit is contained in:
Colton Myers 2017-10-02 13:46:36 -06:00
parent 8a1ae5c465
commit 2fa7fe5ee5
No known key found for this signature in database
GPG key ID: 6EC5C787D71F663F

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):