mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-09 14:34:43 +00:00
Rework trimToLast to take into account an ordinal for last trimming so instead of keeping the last entry in a stage, it keeps the last entry before the given ordinal. This takes care of the case where a dense stage that requires several passes does not discard valid data from a previous sparse stage that go beyond the current stage point. (cherry picked from commit 4f55749072b39f89822bdd52c67998f7bed890a9) (cherry picked from commit 6b61dfead88a144c6e85e384d47a24f0c1480c6b) (cherry picked from commit cece81b5dee88b18e3e7ea189fc342ef53ea19f2)