Anyone have any idea why multiple calls to menu_rebuild could be made after the site comes up after a successful drush database update? Before I jump down the rabbit hole?
UPDATE:
To clarify I am using Pressflow.
Specifically when we run an update, multiple menu_router rebuilds are called resulting in duplicate key errors and max connection timeouts. The former issue occurs even with smaller updates.
UPDATE: to mitigate against this, is there a non-hack way to increase the lock timeout used by menu_rebuild? It calls that function with no parameters which defaults to 30s and we'd like to increase that.