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

Method incrementSchemaUpdateCounter

graphql/admin/admin.go:952–956  ·  view source on GitHub ↗
(ns uint64)

Source from the content-addressed store, hash-verified

950}
951
952func (as *adminServer) incrementSchemaUpdateCounter(ns uint64) {
953 // Increment the Epoch when you get a new schema. So, that subscription's local epoch
954 // will match against global epoch to terminate the current subscriptions.
955 atomic.AddUint64(as.getGlobalEpoch(ns), 1)
956}
957
958func (as *adminServer) resetSchema(ns uint64, gqlSchema schema.Schema) {
959 // set status as updating schema

Callers 2

newAdminResolverFunction · 0.95
initServerMethod · 0.95

Calls 1

getGlobalEpochMethod · 0.95

Tested by

no test coverage detected