Merge pull request #1607 from jaffee/1606-store-event-race

fix race on replicationClosing channel
This commit is contained in:
Matthew Jaffee 2018-08-20 11:51:11 -05:00 • committed by GitHub
commit 060e5e3c18
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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")