Skip to content

Commit

Permalink
segmentConfig init
Browse files Browse the repository at this point in the history
  • Loading branch information
Thejas-bhat committed Aug 29, 2024
1 parent bdd497a commit dda544b
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions index/scorch/scorch.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ func NewScorch(storeName string,
forceMergeRequestCh: make(chan *mergerCtrl, 1),
segPlugin: defaultSegmentPlugin,
copyScheduled: map[string]int{},
segmentConfig: make(map[string]interface{}),
}

forcedSegmentType, forcedSegmentVersion, err := configForceSegmentTypeVersion(config)
Expand Down Expand Up @@ -324,14 +325,6 @@ func (s *Scorch) openBolt() error {
s.rollbackRetentionFactor = r
}

if v, ok := s.config["cacheExpiryTime"]; ok {
// validate right at the beginning
if _, err = parseToTimeDuration(v); err != nil {
return fmt.Errorf("cacheExpiryTime parse err: %v", err)
}
s.segmentConfig["cacheExpiryTime"] = v
}

typ, ok := s.config["spatialPlugin"].(string)
if ok {
s.loadSpatialAnalyzerPlugin(typ)
Expand Down

0 comments on commit dda544b

Please sign in to comment.