updated dependencies
This commit is contained in:
parent
94875d2ded
commit
d45fa68a90
703 changed files with 93434 additions and 103138 deletions
10
vendor/github.com/blevesearch/bleve/index_alias_impl.go
generated
vendored
10
vendor/github.com/blevesearch/bleve/index_alias_impl.go
generated
vendored
|
|
@ -44,6 +44,16 @@ func NewIndexAlias(indexes ...Index) *indexAliasImpl {
|
|||
}
|
||||
}
|
||||
|
||||
// VisitIndexes invokes the visit callback on every
|
||||
// indexes included in the index alias.
|
||||
func (i *indexAliasImpl) VisitIndexes(visit func(Index)) {
|
||||
i.mutex.RLock()
|
||||
for _, idx := range i.indexes {
|
||||
visit(idx)
|
||||
}
|
||||
i.mutex.RUnlock()
|
||||
}
|
||||
|
||||
func (i *indexAliasImpl) isAliasToSingleIndex() error {
|
||||
if len(i.indexes) < 1 {
|
||||
return ErrorAliasEmpty
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue