server icon indicating copy to clipboard operation
server copied to clipboard

Create a checksum of the config file in memory

Open ativarsoft opened this issue 3 years ago • 5 comments

This fixes a massive performance bug when opcache is enabled.

Signed-off-by: Mateus de Lima Oliveira [email protected]

ativarsoft avatar Sep 19 '22 19:09 ativarsoft

As reference: https://github.com/nextcloud/server/pull/34099

Thanks for creating a new version of your pull request :+1:

Our usual workflow is that pull request target master as branch. If necessary a patch is backported to the stable* branches (if possible by a bot).

Please don't forget to add the logging output (as requsted in the old pull request) to figure out what the actual issue is. The configuration file is only rewritten (and the opcache cleared) when a change is detected:

https://github.com/nextcloud/server/blob/c2dafb099781a31745749ae399cf864b2a195000/lib/private/Config.php#L158-L164

kesselb avatar Sep 21 '22 16:09 kesselb

@kesselb

The log is empty, Daniel.

ativarsoft avatar Sep 21 '22 16:09 ativarsoft

Hey, when you change the target branch you may need to rebase your pull request. Right now all commits from stable24 which are not in master are also referenced.

kesselb avatar Sep 21 '22 16:09 kesselb

@kesselb, I have no idea how to resolve those rebase conflicts.

ativarsoft avatar Sep 21 '22 17:09 ativarsoft

It depends a bit on your local setup.

When people are working with a fork they usually add another remote "upstream".

git remote add upstream [email protected]:nextcloud/server.git

Then run git fetch upstream.

Afterwards rebase your local branch with the upstream changes git rebase -i upstream/master.

GitHub documentation: https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/working-with-forks

kesselb avatar Sep 21 '22 18:09 kesselb

Any reason this PR is against stable24? Do we have a equivalent for master?

blizzz avatar Mar 09 '23 11:03 blizzz

Closing the pull request due to inactivity.

kesselb avatar Mar 09 '23 11:03 kesselb