From: Bjørn Erik Pedersen Date: Mon, 25 Nov 2019 09:09:18 +0000 (+0100) Subject: hubolig: Fix potential data race X-Git-Tag: v0.60.0~22 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=03e2d7462dec17c2f623a13db709f9efc88182af;p=brevno-suite%2Fhugo hubolig: Fix potential data race Fixes #6478 --- 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) }