MCPcopy
hub / github.com/olric-data/olric / loadRoute

Method loadRoute

cluster_iterator.go:55–64  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

53}
54
55func (i *ClusterIterator) loadRoute() {
56 i.routingTableMtx.Lock()
57 defer i.routingTableMtx.Unlock()
58
59 route, ok := i.routingTable[i.partID]
60 if !ok {
61 panic("partID: could not be found in the routing table")
62 }
63 i.route = &route
64}
65
66func (i *ClusterIterator) updateCursor(owner string, cursor uint64) {
67 if _, ok := i.cursors[i.partID]; !ok {

Callers 2

resetMethod · 0.95
ScanMethod · 0.95

Calls 2

LockMethod · 0.65
UnlockMethod · 0.65

Tested by

no test coverage detected