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

Method DeleteNamespace

dgraph/cmd/zero/zero.go:674–677  ·  view source on GitHub ↗

DeleteNamespace removes the tablets for deleted namespace from the membership state.

(ctx context.Context, in *pb.DeleteNsRequest)

Source from the content-addressed store, hash-verified

672
673// DeleteNamespace removes the tablets for deleted namespace from the membership state.
674func (s *Server) DeleteNamespace(ctx context.Context, in *pb.DeleteNsRequest) (*pb.Status, error) {
675 err := s.Node.proposeAndWait(ctx, &pb.ZeroProposal{DeleteNs: in})
676 return &pb.Status{}, err
677}
678
679// ShouldServe returns the tablet serving the predicate passed in the request.
680func (s *Server) ShouldServe(

Callers

nothing calls this directly

Calls 1

proposeAndWaitMethod · 0.45

Tested by

no test coverage detected