Skip to content

Commit

Permalink
add missing call to tablemanager.stop when loading of tables fail
Browse files Browse the repository at this point in the history
  • Loading branch information
sandeepsukhani committed Nov 18, 2020
1 parent 8924dc5 commit 4cfe998
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/storage/stores/shipper/downloads/table_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ func NewTableManager(cfg Config, boltIndexClient BoltDBIndexClient, storageClien
err := tm.loadLocalTables()
if err != nil {
// call Stop to close open file references.
tm.Stop()
return nil, err
}

Expand Down

0 comments on commit 4cfe998

Please sign in to comment.