IndexingInProgress checks whether indexing is going on for a given predicate.
()
| 516 | |
| 517 | // IndexingInProgress checks whether indexing is going on for a given predicate. |
| 518 | func (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. |
| 525 | func Init(ps *badger.DB) { |
no test coverage detected