Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 291167

menu_link_save() tries to do a SELECT to find a parents WHERE mlid=0 many times.

$
0
0

During menu_link_save() the code attempts to find a parent for the new item, but doesn't check to see if the parent ID it's looking for is 0 (which should never exist anyways).

For me it saves 390 queries during a "cache clear".

Patch checks for 0, then doesn't do a query.

This is important, as I need to speed up cache clears to avoid this race condition:
#246653: Duplicate entry in menu_router: Different symptoms, same issue Comment #228

Related Issues:
This issue has my patch, but the people in here started to get a little too fancy, and this code never got committed.
#302638: No-op and slow queries during menu rebuild

Appears this is also related to a bug in D6 with regards to parenting items (which doesn't look like it has a fix any time soon)
#550254: Menu links are sometimes not properly re-parented

AttachmentSizeStatusTest resultOperations
menu-NeverHasMLIDZero-D6.patch573 bytesIdlePASSED: [[SimpleTest]]: [MySQL] 190 pass(es).View details | Re-test

Viewing all articles
Browse latest Browse all 291167

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>