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

Method getSchema

dgraph/cmd/bulk/schema.go:61–65  ·  view source on GitHub ↗
(pred string)

Source from the content-addressed store, hash-verified

59}
60
61func (s *schemaStore) getSchema(pred string) *pb.SchemaUpdate {
62 s.RLock()
63 defer s.RUnlock()
64 return s.schemaMap[pred]
65}
66
67func (s *schemaStore) setSchemaAsList(pred string) {
68 s.Lock()

Callers 4

toListMethod · 0.80
addCountEntryMethod · 0.80
createPostingsMethod · 0.80
addIndexMapEntriesMethod · 0.80

Calls 2

RLockMethod · 0.80
RUnlockMethod · 0.80

Tested by

no test coverage detected