Skip to content

Commit

Permalink
move transformedDocs into for loop in fetchDataAndExecutePercolateQue…
Browse files Browse the repository at this point in the history
…riesPerShard()

Signed-off-by: Surya Sashank Nistala <[email protected]>
  • Loading branch information
eirsep committed Dec 20, 2023
1 parent f4c3690 commit c97b8fb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -596,8 +596,8 @@ object DocumentLevelMonitorRunner : MonitorRunner() {
docsToQueries: MutableMap<String, MutableList<String>>,
) {
val count: Int = docExecutionCtx.updatedLastRunContext["shards_count"] as Int
val transformedDocs = mutableListOf<Pair<String, BytesReference>>()
for (i: Int in 0 until count) {
val transformedDocs = mutableListOf<Pair<String, BytesReference>>()
val shard = i.toString()
try {
val maxSeqNo: Long = docExecutionCtx.updatedLastRunContext[shard].toString().toLong()
Expand Down

0 comments on commit c97b8fb

Please sign in to comment.