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

Method blockTablet

dgraph/cmd/zero/zero.go:321–326  ·  view source on GitHub ↗
(pred string)

Source from the content-addressed store, hash-verified

319}
320
321func (s *Server) blockTablet(pred string) func() {
322 s.blockCommitsOn.Store(pred, struct{}{})
323 return func() {
324 s.blockCommitsOn.Delete(pred)
325 }
326}
327
328func (s *Server) isBlocked(pred string) bool {
329 _, blocked := s.blockCommitsOn.Load(pred)

Callers 1

movePredicateMethod · 0.95

Calls 2

StoreMethod · 0.45
DeleteMethod · 0.45

Tested by

no test coverage detected