-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
Parsing files [file9.png, file10.png] gives two items even if mergePadding config is set. But [file8.png, file9.png, file10.png, file11.png] works.
This happened because splitAllAndSort function is called before merging padding in parse() function. And there we are losing index info for single items.
if (bucket.splittable()) {
const size_t index = getPivotIndex(strategy, bucket);
if (index == LOCATION_NONE) {
bucket.flatten(pusher);
} else {
bucket.split(index, pusher);
}
} else {
if (bucket.single()) {
bucket.flatten(pusher); // HERE WE ARE LOOSING INDECES
} else {
buckets.emplace_back(std::move(bucket));
}
}
Metadata
Metadata
Assignees
Labels
No labels