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

Function InitializeAcl

edgraph/access.go:417–428  ·  view source on GitHub ↗

upserts the Groot account.

(closer *z.Closer)

Source from the content-addressed store, hash-verified

415
416// upserts the Groot account.
417func InitializeAcl(closer *z.Closer) {
418 defer func() {
419 glog.Infof("InitializeAcl closed")
420 closer.Done()
421 }()
422
423 if worker.Config.AclSecretKey == nil {
424 // The acl feature is not turned on.
425 return
426 }
427 upsertGuardianAndGroot(closer, x.RootNamespace)
428}
429
430// Note: The handling of closer should be done by caller.
431func upsertGuardianAndGroot(closer *z.Closer, ns uint64) {

Callers 3

runFunction · 0.92
restoreFunction · 0.92
alterMethod · 0.85

Calls 3

upsertGuardianAndGrootFunction · 0.85
InfofMethod · 0.80
DoneMethod · 0.45

Tested by

no test coverage detected