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

Method IndexingInProgress

schema/schema.go:518–522  ·  view source on GitHub ↗

IndexingInProgress checks whether indexing is going on for a given predicate.

()

Source from the content-addressed store, hash-verified

516
517// IndexingInProgress checks whether indexing is going on for a given predicate.
518func (s *state) IndexingInProgress() bool {
519 s.RLock()
520 defer s.RUnlock()
521 return len(s.mutSchema) > 0
522}
523
524// Init resets the schema state, setting the underlying DB to the given pointer.
525func Init(ps *badger.DB) {

Callers 4

WaitForIndexingFunction · 0.80
runSchemaMutationFunction · 0.80

Calls 2

RLockMethod · 0.80
RUnlockMethod · 0.80

Tested by

no test coverage detected