mirror of
https://github.com/containers/podman.git
synced 2025-07-03 09:17:15 +08:00
Convert exec session tracking to use a dedicated struct
This will behave better if we need to add anything to it at a later date - we can add fields to the struct without breaking existing BoltDB databases. Signed-off-by: Matthew Heon <matthew.heon@gmail.com> Closes: #412 Approved by: baude
This commit is contained in:
@ -338,7 +338,7 @@ func (s *SQLState) UpdateContainer(ctr *Container) error {
|
||||
newState.IPAddress = ipAddress
|
||||
newState.SubnetMask = subnetMask
|
||||
|
||||
newState.ExecSessions = make(map[string]int)
|
||||
newState.ExecSessions = make(map[string]*ExecSession)
|
||||
if err := json.Unmarshal([]byte(execSessions), &newState.ExecSessions); err != nil {
|
||||
return errors.Wrapf(err, "error parsing container %s exec sessions", ctr.ID())
|
||||
}
|
||||
|
Reference in New Issue
Block a user