MCPcopy
hub / github.com/dgraph-io/dgraph / processTabletSizes

Method processTabletSizes

worker/draft.go:831–843  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

829}
830
831func (n *node) processTabletSizes() {
832 defer n.closer.Done() // CLOSER:1
833 tick := time.Tick(5 * time.Minute) // Once every 5 minutes seems alright.
834
835 for {
836 select {
837 case <-n.closer.HasBeenClosed():
838 return
839 case <-tick:
840 n.calculateTabletSizes()
841 }
842 }
843}
844
845func updateStartTs(p *pb.Proposal) {
846 switch {

Callers 1

InitAndStartNodeMethod · 0.95

Calls 2

calculateTabletSizesMethod · 0.95
DoneMethod · 0.45

Tested by

no test coverage detected