hubolig: Fix potential data race

Fixes #6478
This commit is contained in:
Bjørn Erik Pedersen 2019-11-25 10:09:18 +01:00
parent ea96e1dc55
commit 03e2d7462d

View file

@ -442,7 +442,7 @@ func (b *pagesMapBucket) getPages() page.Pages {
func (b *pagesMapBucket) getPagesAndSections() page.Pages {
b.pagesAndSectionsInit.Do(func() {
var pas page.Pages
pas = append(pas, b.pages...)
pas = append(pas, b.getPages()...)
for _, p := range b.bucketSections {
pas = append(pas, p.owner)
}