diff options
author | Daniel J Walsh <dwalsh@redhat.com> | 2017-12-11 10:47:50 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-11 10:47:50 -0600 |
commit | 62e19beeecc8f4af97388c0e715c92b582fbe685 (patch) | |
tree | 0d5cd12032d5a90305c00370c861ac69c46dc821 /libpod/in_memory_state.go | |
parent | 915410aafffbe91707e2dd6562a1bfb237815f88 (diff) | |
parent | b71cde19c8b511c054ee42084113ce97ed6d5b62 (diff) | |
download | podman-62e19beeecc8f4af97388c0e715c92b582fbe685.tar.gz podman-62e19beeecc8f4af97388c0e715c92b582fbe685.tar.bz2 podman-62e19beeecc8f4af97388c0e715c92b582fbe685.zip |
Merge pull request #94 from mheon/restart
Add handling for system restart in libpod
Diffstat (limited to 'libpod/in_memory_state.go')
-rw-r--r-- | libpod/in_memory_state.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libpod/in_memory_state.go b/libpod/in_memory_state.go index 5d03e62e6..4e4cbb664 100644 --- a/libpod/in_memory_state.go +++ b/libpod/in_memory_state.go @@ -38,6 +38,12 @@ func (s *InMemoryState) Close() error { return nil } +// Refresh clears container and pod stats after a reboot +// In-memory state won't survive a reboot so this is a no-op +func (s *InMemoryState) Refresh() error { + return nil +} + // Container retrieves a container from its full ID func (s *InMemoryState) Container(id string) (*Container, error) { if id == "" { |