소스 검색

Merge pull request #731 from mrjana/bugs

Skip non-persistent endpoints in sandbox store
Madhu Venugopal 9 년 전
부모
커밋
c903982bf7
1개의 변경된 파일6개의 추가작업 그리고 0개의 파일을 삭제
  1. 6 0
      libnetwork/sandbox_store.go

+ 6 - 0
libnetwork/sandbox_store.go

@@ -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(),