File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-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"
@@ -227,6 +228,8 @@ func (p *pebbleIterator) setOptions(
227
228
KeyTypes : opts .KeyTypes ,
228
229
UseL6Filters : opts .useL6Filters ,
229
230
Category : opts .ReadCategory .PebbleCategory (),
231
+ // Exempt hot paths from iterator tracking.
232
+ ExemptFromTracking : opts .ReadCategory == fs .BatchEvalReadCategory || opts .ReadCategory == fs .ScanRegularBatchEvalReadCategory ,
230
233
}
231
234
p .prefix = opts .Prefix
232
235
You can’t perform that action at this time.
0 commit comments