Skip to content
Permalink
Browse files

hubolig: Fix potential data race

Fixes #6478
  • Loading branch information
bep committed Nov 25, 2019
1 parent ea96e1d commit 03e2d7462dec17c2f623a13db709f9efc88182af
Showing with 1 addition and 1 deletion.
  1. +1 −1 hugolib/pages_map.go
@@ -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)
}

0 comments on commit 03e2d74

Please sign in to comment.
You can’t perform that action at this time.