MCPcopy
hub / github.com/grafana/dskit / Merge

Method Merge

kv/memberlist/mergeable.go:36–36  ·  kv/memberlist/mergeable.go::Mergeable.Merge

Merge with other value in place. Returns change, that can be sent to other clients. If merge doesn't result in any change, returns nil. Error can be returned if merging with given 'other' value is not possible. Implementors of this method are permitted to modify the other parameter, as the memberlis

(other Mergeable, localCAS bool)

Source from the content-addressed store, hash-verified

34 // missing entries, and generate tombstones. (This breaks commutativity and associativity [!] so it can *only* be
35 // used when doing CAS operation)
36 Merge(other Mergeable, localCAS bool) (change Mergeable, err error)
37
38 // MergeContent describes the content of this mergeable value. Used by memberlist client to decide if
39 // one change-value can invalidate some other value, that was received previously.

Callers 15

XXX_MergeMethod · 0.65
XXX_MergeMethod · 0.65
XXX_MergeMethod · 0.65
XXX_MergeMethod · 0.65
XXX_MergeMethod · 0.65
XXX_MergeMethod · 0.65
XXX_MergeMethod · 0.65
XXX_MergeMethod · 0.65
mergeFunction · 0.65

Implementers 5

PartitionRingDescring/partition_ring_desc.pb.go
Descring/ring.pb.go
PropagationDelayTrackerDesckv/memberlist/propagation_tracker.pb.g
datakv/memberlist/memberlist_client_test.g
testMergeablekv/memberlist/propagation_tracker_mode

Calls

no outgoing calls