Skip to content

Conversation

@unn
Copy link

@unn unn commented Feb 11, 2013

The lock_wait() in menu_rebuild() is harmful. During a menu_rebuild, we observed processes on web servers stuck for 30 seconds due to the lock_wait.

Since Pressflow is using a transaction, it seems unnecessary to wait the process until it has completed.

@pwolanin
Copy link
Contributor

A couple whitespace changes in there should be omitted.

@pwolanin
Copy link
Contributor

There are rare cases where the transaction will not be sufficient (e.g. the router or masks is empty), but I think those are rare enough to be worth trying this.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should probably adjust the code comments too

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants