issues
search
spf13
/
afero
A FileSystem Abstraction System for Go
Apache License 2.0
5.79k
stars
498
forks
source link
Fix concurrency issue in MemMapFs.Mkdir/MkdirAll
#379
Closed
bep
closed
1 year ago
bep
commented
1 year ago
The backing map is protected by a RWMutex
This commit double checks for the existence of the directory inside the write lock to avoid potential data races when multiple goroutines tries to create the same directory.
Fixes #361 Fixes #298
Fixes #361 Fixes #298