diff options
author | satotake <doublequotation@gmail.com> | 2021-05-23 17:42:01 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-23 10:42:01 +0200 |
commit | 785a31b5b84643f4769f9bd363599cbcce86f098 (patch) | |
tree | 06faf195e70dab43a035235173bc173aa5567735 /navigation/pagemenus.go | |
parent | bc1e05286a96d08ad02ad200d6a4076bb01c486e (diff) |
navigation: Cache and copy Menu for sorting
.Site.Menus is mutated when it is sorted for now and this causes concurrency problem (#7594)
In this patch, each related sort function copies Menu before sorting to prevent
race condition.
Pages already have such a sort and cache logic and this patch is identical to it.
Closes #7594
Diffstat (limited to 'navigation/pagemenus.go')
0 files changed, 0 insertions, 0 deletions