Skip to content

Commit

Permalink
Merge pull request #1495 from LK4D4/fix_sb_race
Browse files Browse the repository at this point in the history
fix race in serializing sandbox to string
  • Loading branch information
Santhosh Manohar authored Oct 13, 2016
2 parents ebfa69e + 93eead6 commit 393afa7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -882,8 +882,9 @@ func (c *controller) NewSandbox(containerID string, options ...SandboxOption) (s
if s.containerID == containerID {
// If not a stub, then we already have a complete sandbox.
if !s.isStub {
sbID := s.ID()
c.Unlock()
return nil, types.ForbiddenErrorf("container %s is already present: %v", containerID, s)
return nil, types.ForbiddenErrorf("container %s is already present in sandbox %s", containerID, sbID)
}

// We already have a stub sandbox from the
Expand Down

0 comments on commit 393afa7

Please sign in to comment.