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

Method groupChecksums

dgraph/cmd/zero/zero.go:271–279  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

269}
270
271func (s *Server) groupChecksums() map[uint32]uint64 {
272 s.RLock()
273 defer s.RUnlock()
274 m := make(map[uint32]uint64)
275 for gid, g := range s.state.GetGroups() {
276 m[gid] = g.Checksum
277 }
278 return m
279}
280
281func (s *Server) storeZero(m *pb.Member) {
282 s.Lock()

Callers 2

OracleMethod · 0.95
movePredicateMethod · 0.95

Calls 3

RLockMethod · 0.80
RUnlockMethod · 0.80
GetGroupsMethod · 0.80

Tested by

no test coverage detected