Skip to content

Commit

Permalink
Disabling fieldTFRCacheThreshold by default
Browse files Browse the repository at this point in the history
  • Loading branch information
abhinavdangeti committed Dec 17, 2024
1 parent 4d94833 commit 51dc453
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index/scorch/snapshot_index.go
Original file line number Diff line number Diff line change
Expand Up @@ -638,7 +638,7 @@ func (is *IndexSnapshot) allocTermFieldReaderDicts(field string) (tfr *IndexSnap
// This threshold can be overwritten by users at the library level by changing the
// exported variable, or at the index level by setting the "fieldTFRCacheThreshold"
// in the kvConfig.
const defaultFieldTFRCacheThreshold int = 10
var DefaultFieldTFRCacheThreshold int = 0 // disabled because it causes MB-64604

func (is *IndexSnapshot) getFieldTFRCacheThreshold() int {
if is.parent.config != nil {
Expand All @@ -654,7 +654,7 @@ func (is *IndexSnapshot) getFieldTFRCacheThreshold() int {
}
}
}
return defaultFieldTFRCacheThreshold
return DefaultFieldTFRCacheThreshold
}

func (is *IndexSnapshot) recycleTermFieldReader(tfr *IndexSnapshotTermFieldReader) {
Expand Down

0 comments on commit 51dc453

Please sign in to comment.