mirror of
https://github.com/gohugoio/hugo.git
synced 2024-12-26 13:31:03 +00:00
commands: Fix missing file locking in server partial render
Fixes #9162
This commit is contained in:
parent
9369d13e59
commit
ab5c6990a5
1 changed files with 3 additions and 1 deletions
|
@ -765,7 +765,9 @@ func (c *commandeer) partialReRender(urls ...string) error {
|
|||
for _, url := range urls {
|
||||
visited[url] = true
|
||||
}
|
||||
return c.hugo().Build(hugolib.BuildCfg{NoBuildLock: true, RecentlyVisited: visited, PartialReRender: true, ErrRecovery: c.wasError})
|
||||
|
||||
// Note: We do not set NoBuildLock as the file lock is not acquired at this stage.
|
||||
return c.hugo().Build(hugolib.BuildCfg{NoBuildLock: false, RecentlyVisited: visited, PartialReRender: true, ErrRecovery: c.wasError})
|
||||
}
|
||||
|
||||
func (c *commandeer) fullRebuild(changeType string) {
|
||||
|
|
Loading…
Reference in a new issue