Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2019-11-25 12:09:18 +0300
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2019-11-25 20:59:06 +0300
commit03e2d7462dec17c2f623a13db709f9efc88182af (patch)
treeafc83de91318563613567923dde1f59bf92b608a /hugolib
parentea96e1dc554efb86cba561d77a4bb2ae9d6e3662 (diff)
hubolig: Fix potential data race
Fixes #6478
Diffstat (limited to 'hugolib')
-rw-r--r--hugolib/pages_map.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/hugolib/pages_map.go b/hugolib/pages_map.go
index 5af86c95d..b5b47ccaf 100644
--- a/hugolib/pages_map.go
+++ b/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)
}