Skip to content
This repository has been archived by the owner on Oct 29, 2021. It is now read-only.

Commit

Permalink
InfluxDBStore: when Close is called and flush fails, log instead of r…
Browse files Browse the repository at this point in the history
…eturning

otherwise we potentially do not close the store.
  • Loading branch information
emidoots committed Apr 27, 2016
1 parent b938d8e commit c9dba40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion influxdb_store.go
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ func (in *InfluxDBStore) Traces(opts TracesOpts) ([]*Trace, error) {
func (in *InfluxDBStore) Close() error {
close(in.flusherStopChan)
if err := in.flush(); err != nil {
return err
in.log.Println("Flush:", err)
}
return in.server.Close()
}
Expand Down

0 comments on commit c9dba40

Please sign in to comment.