Repository navigation
[core] Fix regression in Bucket::hasData - #6876
Conversation
|
@brunoabinader, thanks for your PR! By analyzing the history of the files in this pull request, we identified @jfirebaugh, @kkaefer and @ansis to be potential reviewers. |
57b50bf to
6764eb2
Compare
|
Why did you remove the |
Rationale is that we frequently update bucket contents - so we can save one less check on each pass by initializing the segments container with one empty segment. |
|
Okay, but it also feels weird to start out empty buckets with an actual segment in the list. |
Right, I can extract that change out of 384f1a1 then. Will keep the utests to make sure of it in the future. |
6764eb2 to
be20640
Compare
As per @jfirebaugh review in 384f1a1#commitcomment-19656901, commit 384f1a1 introduced a regression in
{Circle,Fill,Line,Symbol}Bucket::hasData()in a sense that an empty bucket would never returnfalse.