Skip to content

Commit

Permalink
Skip non-persistent endpoints in sandbox store
Browse files Browse the repository at this point in the history
If the endpoint and the corresponding network is
not persistent then skip adding it into sandbox
store.

Signed-off-by: Jana Radhakrishnan <mrjana@docker.com>
  • Loading branch information
mrjana committed Nov 2, 2015
1 parent 8aa050e commit f8587c8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions sandbox_store.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,12 @@ func (sb *sandbox) storeUpdate() error {
retry:
sbs.Eps = nil
for _, ep := range sb.getConnectedEndpoints() {
// If the endpoint is not persisted then do not add it to
// the sandbox checkpoint
if ep.Skip() {
continue
}

eps := epState{
Nid: ep.getNetwork().ID(),
Eid: ep.ID(),
Expand Down

0 comments on commit f8587c8

Please sign in to comment.