Change opLock mutex for containers to sync.Locker
Signed-off-by: Matthew Heon <mheon@redhat.com>
This commit is contained in:
parent
4086f2bc37
commit
a3c95bf903
1 changed files with 2 additions and 1 deletions
|
@ -37,7 +37,7 @@ type Container struct {
|
||||||
trusted bool
|
trusted bool
|
||||||
state *ContainerState
|
state *ContainerState
|
||||||
metadata *pb.ContainerMetadata
|
metadata *pb.ContainerMetadata
|
||||||
opLock sync.Mutex
|
opLock sync.Locker
|
||||||
// this is the /var/run/storage/... directory, erased on reboot
|
// this is the /var/run/storage/... directory, erased on reboot
|
||||||
bundlePath string
|
bundlePath string
|
||||||
// this is the /var/lib/storage/... directory
|
// this is the /var/lib/storage/... directory
|
||||||
|
@ -79,6 +79,7 @@ func NewContainer(id string, name string, bundlePath string, logPath string, net
|
||||||
dir: dir,
|
dir: dir,
|
||||||
state: state,
|
state: state,
|
||||||
stopSignal: stopSignal,
|
stopSignal: stopSignal,
|
||||||
|
opLock: new(sync.Mutex),
|
||||||
}
|
}
|
||||||
return c, nil
|
return c, nil
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue