From b71cde19c8b511c054ee42084113ce97ed6d5b62 Mon Sep 17 00:00:00 2001 From: Matthew Heon Date: Thu, 7 Dec 2017 13:15:34 -0500 Subject: Add ability to refresh state in DB Also, ensure we always recreate runtime spec so our net namespace paths will be correct Signed-off-by: Matthew Heon --- libpod/in_memory_state.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'libpod/in_memory_state.go') 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 == "" { -- cgit v1.2.3-54-g00ecf