mirror of
https://github.com/containers/podman.git
synced 2025-10-14 09:45:59 +08:00
DB: make loading container states optional
Loading container states speed things up when listing all containers but it comes with a price tag for many other call paths. Hence, make loading the state conditional to allow for keeping `podman ps` fast without other commands regressing in performance. [NO NEW TESTS NEEDED] Signed-off-by: Valentin Rothberg <vrothberg@redhat.com>
This commit is contained in:
@ -49,7 +49,7 @@ func (r *Runtime) migrate() error {
|
||||
return err
|
||||
}
|
||||
|
||||
allCtrs, err := r.state.AllContainers()
|
||||
allCtrs, err := r.state.AllContainers(false)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
Reference in New Issue
Block a user