hugo/hugolib
Bjørn Erik Pedersen 95ce2a40e7
hugolib: Prevent parallel server rebuilds
There have been reports about infrequent paginator crashes when running the Hugo server since 0.55.0.

The reason have been narrowed down to that of parallel rebuilds.

This isn't a new thing, but the changes in 0.55.0 made it extra important to serialize the page initialization.

This commit fixes that by protecting the `Build` method with a lock when running in server mode.

Fixes #5885
Fixes #5968
2019-05-18 09:01:40 +02:00
..
filesystems
paths
testdata
testsite
404_test.go
alias.go
alias_test.go
case_insensitive_test.go
collections.go
collections_test.go hugolib: Add some integration tests for in/uniq using Pages 2019-04-19 09:07:21 +02:00
config.go
config_test.go
configdir_test.go
datafiles_test.go
disableKinds_test.go
embedded_shortcodes_test.go
embedded_templates_test.go
fileInfo.go
fileInfo_test.go
gitinfo.go
hugo_sites.go hugolib: Prevent parallel server rebuilds 2019-05-18 09:01:40 +02:00
hugo_sites_build.go hugolib: Prevent parallel server rebuilds 2019-05-18 09:01:40 +02:00
hugo_sites_build_errors_test.go
hugo_sites_build_test.go
hugo_sites_multihost_test.go
hugo_sites_rebuild_test.go hugolib: Fix Pages reinitialization on rebuilds 2019-04-17 12:56:46 +02:00
hugo_smoke_test.go
hugo_themes_test.go
language_content_dir_test.go
menu_test.go Fix menu URL when multiple permalinkable output formats 2019-04-19 10:29:52 +02:00
minify_publisher_test.go
multilingual.go
page.go hugolib: Fix bundle resource publishing when multiple output formats 2019-04-15 17:01:39 +02:00
page__common.go hugolib: Fix Pages reinitialization on rebuilds 2019-04-17 12:56:46 +02:00
page__content.go hugolib: Fix shortcode version=1 logic 2019-04-24 15:35:04 +02:00
page__data.go
page__menus.go
page__meta.go hugolib: No links for bundled pages 2019-04-22 13:22:01 +02:00
page__new.go hugolib: No links for bundled pages 2019-04-22 13:22:01 +02:00
page__output.go Fix paginator refresh on server change 2019-04-12 09:18:59 +02:00
page__paginator.go Fix paginator refresh on server change 2019-04-12 09:18:59 +02:00
page__paths.go hugolib: No links for bundled pages 2019-04-22 13:22:01 +02:00
page__per_output.go hugolib: Consider summary in front matter for .Summary 2019-04-05 19:11:04 +02:00
page__position.go
page__ref.go
page__tree.go
page_kinds.go
page_permalink_test.go hugolib: Log warning on relative front matter url with lang 2019-04-07 18:54:18 +02:00
page_test.go hugolib: Fix dates for sections with dates in front matter 2019-04-13 20:01:43 +02:00
page_unwrap.go
page_unwrap_test.go
pagebundler.go
pagebundler_capture.go
pagebundler_capture_test.go
pagebundler_handlers.go hugolib: No links for bundled pages 2019-04-22 13:22:01 +02:00
pagebundler_test.go hugolib: No links for bundled pages 2019-04-22 13:22:01 +02:00
pagecollections.go
pagecollections_test.go
pages_language_merge_test.go
paginator_test.go Misc paginator adjustments 2019-04-08 11:02:12 +02:00
permalinker.go
prune_resources.go
resource_chain_test.go
robotstxt_test.go
rss_test.go hugolib: Consider summary in front matter for .Summary 2019-04-05 19:11:04 +02:00
shortcode.go hugolib: Fix shortcode version=1 logic 2019-04-24 15:35:04 +02:00
shortcode_page.go
shortcode_test.go hugolib: Fix shortcode version=1 logic 2019-04-24 15:35:04 +02:00
site.go hugolib: Fix PrevInSection/NextInSection for nested sections 2019-05-01 19:34:28 +02:00
site_benchmark_new_test.go hugolib: Avoid recloning of shortcode templates 2019-04-24 12:37:57 +02:00
site_benchmark_test.go
site_output.go
site_output_test.go Fix links for non-HTML output formats 2019-04-20 15:01:20 +02:00
site_render.go output: Fix permalink in sitemap etc. when multiple permalinkable output formats 2019-05-02 14:23:16 +02:00
site_sections.go hugolib: Fix dates for sections with dates in front matter 2019-04-13 20:01:43 +02:00
site_sections_test.go hugolib: Fix PrevInSection/NextInSection for nested sections 2019-05-01 19:34:28 +02:00
site_stats_test.go
site_test.go hugolib: Consider summary in front matter for .Summary 2019-04-05 19:11:04 +02:00
site_url_test.go
siteJSONEncode_test.go
sitemap_test.go output: Fix permalink in sitemap etc. when multiple permalinkable output formats 2019-05-02 14:23:16 +02:00
taxonomy.go hugolib: Fix panic for unused taxonomy content files 2019-04-15 13:36:05 +02:00
taxonomy_test.go hugolib: Fix panic for unused taxonomy content files 2019-04-15 13:36:05 +02:00
template_engines_test.go
template_test.go
testhelpers_test.go hugolib: Avoid recloning of shortcode templates 2019-04-24 12:37:57 +02:00
translations.go