Merge pull request #129 from noxiouz/fix_missing_mutex
[InMemory] Add missing mutex.RLock/RUnlock in List
This commit is contained in:
commit
e492579718
1 changed files with 3 additions and 0 deletions
|
@ -194,6 +194,9 @@ func (d *Driver) List(path string) ([]string, error) {
|
|||
return nil, storagedriver.InvalidPathError{Path: path}
|
||||
}
|
||||
|
||||
d.mutex.RLock()
|
||||
defer d.mutex.RUnlock()
|
||||
|
||||
normalized := normalize(path)
|
||||
|
||||
found := d.root.find(normalized)
|
||||
|
|
Loading…
Reference in a new issue