File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ import (
13
13
14
14
"github.com/cockroachdb/cockroach/pkg/keys"
15
15
"github.com/cockroachdb/cockroach/pkg/roachpb"
16
+ "github.com/cockroachdb/cockroach/pkg/storage/fs"
16
17
"github.com/cockroachdb/cockroach/pkg/storage/mvccencoding"
17
18
"github.com/cockroachdb/cockroach/pkg/storage/pebbleiter"
18
19
"github.com/cockroachdb/cockroach/pkg/util"
@@ -228,6 +229,11 @@ func (p *pebbleIterator) setOptions(
228
229
UseL6Filters : opts .useL6Filters ,
229
230
Category : opts .ReadCategory .PebbleCategory (),
230
231
}
232
+ switch opts .ReadCategory {
233
+ case fs .BatchEvalReadCategory , fs .ScanRegularBatchEvalReadCategory , fs .ScanBackgroundBatchEvalReadCategory :
234
+ // Exempt hot paths from iterator tracking.
235
+ p .options .ExemptFromTracking = true
236
+ }
231
237
p .prefix = opts .Prefix
232
238
233
239
if opts .LowerBound != nil {
You can’t perform that action at this time.
0 commit comments