From 03e2d7462dec17c2f623a13db709f9efc88182af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Mon, 25 Nov 2019 10:09:18 +0100 Subject: [PATCH] hubolig: Fix potential data race Fixes #6478 --- hugolib/pages_map.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) }