hugo

Unnamed repository; edit this file 'description' to name the repository.

git clone git://git.shimmy1996.com/hugo.git
commit 03e2d7462dec17c2f623a13db709f9efc88182af
parent ea96e1dc554efb86cba561d77a4bb2ae9d6e3662
Author: Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Date:   Mon, 25 Nov 2019 10:09:18 +0100

hubolig: Fix potential data race

Fixes #6478

Diffstat:
Mhugolib/pages_map.go | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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)
 		}