Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for CopyMerge (0.09 sec)

  1. pilot/pkg/xds/pushqueue.go

    		return
    	}
    
    	// If its already in progress, merge the info and return
    	if request, f := p.processing[con]; f {
    		p.processing[con] = request.CopyMerge(pushRequest)
    		return
    	}
    
    	if request, f := p.pending[con]; f {
    		p.pending[con] = request.CopyMerge(pushRequest)
    		return
    	}
    
    	p.pending[con] = pushRequest
    	p.queue = append(p.queue, con)
    	// Signal waiters on Dequeue that a new item is available
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Sep 16 01:37:15 UTC 2021
    - 3.8K bytes
    - Viewed (0)
  2. pilot/pkg/model/push_context.go

    			pr.ConfigsUpdated.Insert(conf)
    		}
    	}
    
    	return pr
    }
    
    // CopyMerge two update requests together. Unlike Merge, this will not mutate either input.
    // This should be used when we are modifying a shared PushRequest (typically any time it's in the context
    // of a single proxy)
    func (pr *PushRequest) CopyMerge(other *PushRequest) *PushRequest {
    	if pr == nil {
    		return other
    	}
    	if other == nil {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 15 09:02:11 UTC 2024
    - 91.8K bytes
    - Viewed (0)
  3. pilot/pkg/model/push_context_test.go

    				Kind: kind.Kind(2),
    			}: {}}},
    			PushRequest{Full: true, ConfigsUpdated: nil, Reason: nil},
    		},
    	}
    
    	for _, tt := range cases {
    		t.Run(tt.name, func(t *testing.T) {
    			got := tt.left.CopyMerge(tt.right)
    			if !reflect.DeepEqual(&tt.merged, got) {
    				t.Fatalf("expected %v, got %v", &tt.merged, got)
    			}
    			got = tt.left.Merge(tt.right)
    			if !reflect.DeepEqual(&tt.merged, got) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun Apr 21 17:42:54 UTC 2024
    - 95.3K bytes
    - Viewed (0)
Back to top