Skip to content

Commit

Permalink
stellar#4433: fixed race condition during index flush
Browse files Browse the repository at this point in the history
  • Loading branch information
sreuland committed Jul 12, 2022
1 parent ad2b90a commit be847d1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions exp/lighthorizon/index/backend/parallel_flush.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ func parallelFlush(parallel uint32, allIndexes map[string]types.NamedIndices, f

batches := make(chan *batch, parallel)

wg.Add(1)
go func() {
defer wg.Done()
for account, indexes := range allIndexes {
batches <- &batch{
account: account,
Expand Down

0 comments on commit be847d1

Please sign in to comment.