()
| 53 | } |
| 54 | |
| 55 | func (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 | |
| 66 | func (i *ClusterIterator) updateCursor(owner string, cursor uint64) { |
| 67 | if _, ok := i.cursors[i.partID]; !ok { |