Merge pull request #10299 from influxdata/bj-tsm1-panic-fix

Fix TSM1 panic on reader error.
pull/10349/head
Ben Johnson 2018-10-10 08:12:17 -06:00 committed by GitHub
commit 844b7ef9bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -547,6 +547,8 @@ func (f *FileStore) Open() error {
readerC <- &res{r: df, err: fmt.Errorf("cannot rename corrupt file %s: %v", file.Name(), e)}
return
}
readerC <- &res{r: df, err: fmt.Errorf("cannot read corrupt file %s: %v", file.Name(), err)}
return
}
df.WithObserver(f.obs)