Fix file store not close all TSM files

Regression added via #8192
pull/8249/head
Jason Wilder 2017-04-04 10:58:51 -06:00
parent 7119ef8f29
commit 84cbee227a
1 changed files with 4 additions and 0 deletions

View File

@ -448,6 +448,10 @@ func (f *FileStore) Close() error {
f.mu.Lock() f.mu.Lock()
defer f.mu.Unlock() defer f.mu.Unlock()
for _, file := range f.files {
file.Close()
}
f.lastFileStats = nil f.lastFileStats = nil
f.files = nil f.files = nil
atomic.StoreInt64(&f.stats.FileCount, 0) atomic.StoreInt64(&f.stats.FileCount, 0)