aboutsummaryrefslogtreecommitdiff
path: root/libpod/container_unsupported.go
diff options
context:
space:
mode:
authorMatthew Heon <matthew.heon@gmail.com>2018-07-30 09:42:35 -0400
committerAtomic Bot <atomic-devel@projectatomic.io>2018-07-31 14:19:50 +0000
commit1db70cce344724e091635bc8c6fa6c207450df68 (patch)
treeed48df83141568bb949a8bdd5611cd20b3fa42c2 /libpod/container_unsupported.go
parentcfcd92847684fc65949350b7cdc4769ad1099d46 (diff)
downloadpodman-1db70cce344724e091635bc8c6fa6c207450df68.tar.gz
podman-1db70cce344724e091635bc8c6fa6c207450df68.tar.bz2
podman-1db70cce344724e091635bc8c6fa6c207450df68.zip
Do not fetch pod and ctr State on retrieval in Bolt
It's not necessary to fill in state immediately, as we'll be overwriting it on any API call accessing it thanks to syncContainer(). It is also causing races when we fetch it without holding the container lock (which syncContainer() does). As such, just don't retrieve the state on initial pull from the database with Bolt. Also, refactor some Linux-specific netns handling functions out of container_internal_linux.go into boltdb_linux.go. Signed-off-by: Matthew Heon <matthew.heon@gmail.com> Closes: #1186 Approved by: rhatdan
Diffstat (limited to 'libpod/container_unsupported.go')
-rw-r--r--libpod/container_unsupported.go8
1 files changed, 0 insertions, 8 deletions
diff --git a/libpod/container_unsupported.go b/libpod/container_unsupported.go
index 5b923b52a..e214b9465 100644
--- a/libpod/container_unsupported.go
+++ b/libpod/container_unsupported.go
@@ -3,11 +3,3 @@
package libpod
type containerPlatformState struct{}
-
-func (ctr *Container) setNamespace(netNSPath string, newState *containerState) error {
- return ErrNotImplemented
-}
-
-func (ctr *Container) setNamespaceStatePath() string {
- return ""
-}