Skip to content

Commit

Permalink
fix: terminate session flush
Browse files Browse the repository at this point in the history
  • Loading branch information
gernest committed Mar 3, 2024
1 parent ad93080 commit 65278d2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/session/session.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ func (s *Session) Flush() {
wg.Wait()
}
func (s *Session) append(wg *sync.WaitGroup, tenantId string, r arrow.Record) {
defer wg.Done()
defer r.Release()
err := s.tree.Add(tenantId, r)
if err != nil {
Expand Down

0 comments on commit 65278d2

Please sign in to comment.