gluster is slower on a file_exists('climaintenance.php') if the file doesn't exist, so lets do a couple things:
1) instead of deleting the file, create the file but with a php noop in it
2) the file_exists will still happen and capture the edge cases before it exists but be faster now
3) replace logic around if the file exists, to 'if the file exists and is not a noop'
gluster is slower on a file_exists('climaintenance.php') if the file doesn't exist, so lets do a couple things:
1) instead of deleting the file, create the file but with a php noop in it 2) the file_exists will still happen and capture the edge cases before it exists but be faster now 3) replace logic around if the file exists, to 'if the file exists and is not a noop'
see also https://tracker.moodle.org/browse/MDL-67821