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

Function undoSchemaUpdate

worker/mutation.go:122–131  ·  view source on GitHub ↗
(predicate string)

Source from the content-addressed store, hash-verified

120}
121
122func undoSchemaUpdate(predicate string) {
123 maxRetries := 10
124 loadErr := x.RetryUntilSuccess(maxRetries, 10*time.Millisecond, func() error {
125 return schema.Load(predicate)
126 })
127
128 if loadErr != nil {
129 glog.Fatalf("failed to load schema after %d retries: %v", maxRetries, loadErr)
130 }
131}
132
133func runSchemaMutation(ctx context.Context, updates []*pb.SchemaUpdate, startTs uint64) error {
134 if len(updates) == 0 {

Callers 1

runSchemaMutationFunction · 0.85

Calls 3

RetryUntilSuccessFunction · 0.92
LoadFunction · 0.92
FatalfMethod · 0.80

Tested by

no test coverage detected