diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2017-03-05 15:40:59 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2017-03-05 15:41:58 +0100 |
commit | 6c5ef71368edfae8ffc77224ff6a9ec240c39626 (patch) | |
tree | 389680638e8e6ba8ccc9d34c9ac511ab3c71d2e6 /hugolib | |
parent | c7b8c45d126289c03372c2924b296774dd2aec58 (diff) |
hugolib: Add a temporary workaround for page.copy() data race
See ##3129
Diffstat (limited to 'hugolib')
-rw-r--r-- | hugolib/page.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/hugolib/page.go b/hugolib/page.go index a6c890f79..8e09012e9 100644 --- a/hugolib/page.go +++ b/hugolib/page.go @@ -1655,6 +1655,9 @@ func (p *Page) updatePageDates() { // copy creates a copy of this page with the lazy sync.Once vars reset // so they will be evaluated again, for word count calculations etc. func (p *Page) copy() *Page { + // This is a temporary workaround for the data race in #3129 + p.getPermalink() + c := *p c.pageInit = &pageInit{} return &c |