forked from containers/virtcontainers
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pod: Make state handling functions set in-memory state.
Previously, setPodState() and setContainerState() only set the on-disk state of a pod or container respectively. They now also set the in-memory state. This is cleaner, less surprising, removes the burden from the caller to manage the in-memory state and also ensures that both versions of the state are kept in sync (safer). Fixes containers#279. Signed-off-by: James O. D. Hunt <james.o.hunt@intel.com>
- Loading branch information
1 parent
90ef63f
commit 0e47e70
Showing
2 changed files
with
239 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters