vfs: set the modtime of the cache file immediately
Before this change we set the modtime of the cache file when all writers had finished. This has the unfortunate effect that the file is uploaded with the wrong modtime which means on backends which can't set modtimes except when uploading files it is wrong. This change sets the modtime of the cache file immediately in the cache and in turn sets the modtime in the file info.
This commit is contained in:
@@ -3,6 +3,9 @@
|
||||
|
||||
set -e
|
||||
|
||||
# Optionally set the iterations with the first parameter
|
||||
iterations=${1:-100}
|
||||
|
||||
base=$(dirname $(dirname $(realpath "$0")))
|
||||
echo ${base}
|
||||
run=${base}/bin/test-repeat.sh
|
||||
@@ -17,7 +20,7 @@ cmd/cmount
|
||||
"
|
||||
|
||||
for testdir in ${testdirs}; do
|
||||
echo "Testing ${testdir}"
|
||||
echo "Testing ${testdir} with ${iterations} iterations"
|
||||
cd ${base}/${testdir}
|
||||
${run} -c=100 -race -tags=cmount
|
||||
${run} -i=${iterations} -race -tags=cmount
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user