Skip to content

Commit

Permalink
recover use graphLock when mount a layer
Browse files Browse the repository at this point in the history
Signed-off-by: Jeff Zvier <[email protected]>
  • Loading branch information
zvier committed Aug 18, 2020
1 parent e1ccb3e commit 7005d07
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions store.go
Original file line number Diff line number Diff line change
Expand Up @@ -2630,6 +2630,9 @@ func (s *store) mount(id string, options drivers.MountOpts) (string, error) {
if err != nil {
return "", err
}

s.graphLock.Lock()
defer s.graphLock.Unlock()
rlstore.Lock()
defer rlstore.Unlock()
if modified, err := rlstore.Modified(); modified || err != nil {
Expand Down

0 comments on commit 7005d07

Please sign in to comment.