call fdCache.ShrinkCache to close unreferenced files

This commit is contained in:
Andy Arthur
2020-09-22 14:54:54 -07:00
parent 0ff5b1a70e
commit 6a19e87938

View File

@@ -221,6 +221,12 @@ func (ftp *fsTablePersister) PruneTableFiles(ctx context.Context, contents manif
return err
}
err = ftp.fc.ShrinkCache()
if err != nil {
return err
}
for _, info := range fileInfos {
if info.IsDir() {
continue