MCPcopy Index your code
hub / github.com/dgraph-io/dgraph / applyInitialTypes

Method applyInitialTypes

worker/groups.go:188–199  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

186}
187
188func (g *groupi) applyInitialTypes() {
189 initialTypes := schema.InitialTypes(x.RootNamespace)
190 for _, t := range initialTypes {
191 if _, ok := schema.State().GetType(t.TypeName); ok {
192 continue
193 }
194 // It is okay to write initial types at ts=1.
195 if err := updateType(t.GetTypeName(), t, 1); err != nil {
196 glog.Errorf("Error while applying initial type: %s", err)
197 }
198 }
199}
200
201func (g *groupi) applyInitialSchema() {
202 if g.groupId() != 1 {

Callers 3

handleRestoreProposalFunction · 0.80
postStreamProcessingFunction · 0.80
StartRaftNodesFunction · 0.80

Calls 6

InitialTypesFunction · 0.92
StateFunction · 0.92
updateTypeFunction · 0.85
GetTypeNameMethod · 0.80
GetTypeMethod · 0.45
ErrorfMethod · 0.45

Tested by

no test coverage detected