Skip to content
This repository was archived by the owner on Jul 19, 2023. It is now read-only.

Commit 3869536

Browse files
committedJul 10, 2023
Do cancel it in the right place
1 parent d34f635 commit 3869536

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎pkg/phlaredb/query/iters.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1173,7 +1173,6 @@ func (c *SyncIterator) setPage(pg parquet.Page) {
11731173
}
11741174

11751175
func (c *SyncIterator) closeCurrRowGroup() {
1176-
c.cancel()
11771176
if c.currPages != nil {
11781177
c.currPages.Close()
11791178
}
@@ -1200,6 +1199,7 @@ func (c *SyncIterator) Err() error {
12001199
}
12011200

12021201
func (c *SyncIterator) Close() error {
1202+
c.cancel()
12031203
c.closeCurrRowGroup()
12041204

12051205
c.span.SetTag("inspectedColumnChunks", c.filter.InspectedColumnChunks.Load())

0 commit comments

Comments
 (0)
Failed to load comments.