Skip to content

Commit

Permalink
hubolig: Fix potential data race
Browse files Browse the repository at this point in the history
Fixes #6478
  • Loading branch information
bep committed Nov 25, 2019
1 parent ea96e1d commit 03e2d74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hugolib/pages_map.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 03e2d74

Please sign in to comment.