Merge pull request #129 from noxiouz/fix_missing_mutex

[InMemory] Add missing mutex.RLock/RUnlock in List
This commit is contained in:
Stephen Day 2015-02-02 13:15:25 -08:00
commit e492579718

View file

@ -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)