mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 17:33:54 +00:00
0966dd2766
S3 uses https ETag headers. In some cases (non-multipart uploaded
files), the ETag header is the md5sum of the file. In other cases
(multipart uploaded files) the Etag does not correspond to anything
calculable locally. In that case, files used for the salt filesystem
backend would be downloaded every time the s3 cache timeout expires (a
static 30 seconds). Fortunately, non-md5sum ETags have a hyphen in them.
This patch applies the following logic to such files. If the cached
file is the same size in bytes and has a later last modification time,
it will be considered up to date and will not be downloaded. Otherwise,
it will be updated.
(cherry picked from commit
|
||
---|---|---|
.. | ||
__init__.py | ||
gitfs.py | ||
hgfs.py | ||
minionfs.py | ||
roots.py | ||
s3fs.py | ||
svnfs.py |