Skip to content

Commit

Permalink
fix calculation error
Browse files Browse the repository at this point in the history
  • Loading branch information
janheise committed Dec 17, 2024
1 parent b53226e commit ad93a26
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@ private List<List<String>> partition(final List<String> indices) {
List<String> partition = new ArrayList<>();
int length = 0;
for(String index: indices) {
if(length > MAX_INDICES_URL_PART_LENGTH) {
if(length + index.length() > MAX_INDICES_URL_PART_LENGTH) {
partitions.add(partition);
partition = new ArrayList<>();
}
Expand Down

0 comments on commit ad93a26

Please sign in to comment.