Merge pull request #1381 from mtrmac/shutdown-touch
Remove a manual layerStore.Touch() call from store.Shutdown()
This commit is contained in:
commit
ebf857fda6
12
store.go
12
store.go
|
|
@ -3254,7 +3254,6 @@ func (s *store) FromContainerRunDirectory(id, file string) ([]byte, error) {
|
|||
|
||||
func (s *store) Shutdown(force bool) ([]string, error) {
|
||||
mounted := []string{}
|
||||
modified := false
|
||||
|
||||
rlstore, err := s.getLayerStore()
|
||||
if err != nil {
|
||||
|
|
@ -3288,7 +3287,6 @@ func (s *store) Shutdown(force bool) ([]string, error) {
|
|||
}
|
||||
break
|
||||
}
|
||||
modified = true
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -3304,16 +3302,6 @@ func (s *store) Shutdown(force bool) ([]string, error) {
|
|||
err = fmt.Errorf("(graphLock.Touch failed: %v) %w", err2, err)
|
||||
}
|
||||
}
|
||||
modified = true
|
||||
}
|
||||
if modified {
|
||||
if err2 := rlstore.Touch(); err2 != nil {
|
||||
if err == nil {
|
||||
err = err2
|
||||
} else {
|
||||
err = fmt.Errorf("rlstore.Touch failed: %v) %w", err2, err)
|
||||
}
|
||||
}
|
||||
}
|
||||
return mounted, err
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue