mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-10-10 04:47:53 +00:00
Merge pull request #1607 from jaffee/1606-store-event-race
fix race on replicationClosing channel
This commit is contained in:
commit
060e5e3c18
1 changed files with 1 additions and 3 deletions
|
|
@ -337,9 +337,7 @@ func (s *TranslateFile) monitorReplication() {
|
|||
}
|
||||
|
||||
select {
|
||||
case <-s.closing:
|
||||
return
|
||||
case <-s.replicationClosing:
|
||||
case <-ctx.Done():
|
||||
return
|
||||
case <-time.After(s.replicationRetryInterval):
|
||||
log.Printf("pilosa: reconnecting to primary replica")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue