未验证 提交 a0fb2b22 编写于 作者: R Rafael França 提交者: GitHub

Merge pull request #36941 from ts-3156/master

Ignore Errno::ENOTEMPTY when calling AS::Cache::FileStore#clear with race conditions
......@@ -36,7 +36,7 @@ def self.supports_cache_versioning?
def clear(options = nil)
root_dirs = (Dir.children(cache_path) - GITKEEP_FILES)
FileUtils.rm_r(root_dirs.collect { |f| File.join(cache_path, f) })
rescue Errno::ENOENT
rescue Errno::ENOENT, Errno::ENOTEMPTY
end
# Preemptively iterates through all stored keys and removes the ones which have expired.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册