Skip to content

Commit

Permalink
plugin/storage/es: Remove TerminateAfter
Browse files Browse the repository at this point in the history
Signed-off-by: Jakob Hahn <[email protected]>
  • Loading branch information
Jakob3xD committed Apr 24, 2023
1 parent 212b868 commit 3a5e63b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions plugin/storage/es/spanstore/reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -204,8 +204,7 @@ func getSourceFn(archive bool, maxDocCount int) sourceFn {
return func(query elastic.Query, nextTime uint64) *elastic.SearchSource {
s := elastic.NewSearchSource().
Query(query).
Size(maxDocCount).
TerminateAfter(maxDocCount)
Size(maxDocCount)
if !archive {
s.Sort("startTime", true).
SearchAfter(nextTime)
Expand Down

0 comments on commit 3a5e63b

Please sign in to comment.