Merge pull request #995 from estesp/starttime-for-criu-container

Restored-from-checkpoint containers should have a start time
This commit is contained in:
Michael Crosby 2016-08-23 15:07:14 -07:00 committed by GitHub
commit b4ffe2974d
1 changed files with 2 additions and 0 deletions

View File

@ -1049,6 +1049,8 @@ func (c *linuxContainer) criuNotifications(resp *criurpc.CriuResp, process *Proc
}); err != nil { }); err != nil {
return err return err
} }
// create a timestamp indicating when the restored checkpoint was started
c.created = time.Now().UTC()
if _, err := c.updateState(r); err != nil { if _, err := c.updateState(r); err != nil {
return err return err
} }