Commit 685c5ff
Dmitry Lenev
A pre-requisite for patch fixing bug #52044 "FLUSH TABLES
WITH READ LOCK and FLUSH TABLES <list> WITH READ LOCK are
incompatible", which adds information about waits caused by
FLUSH TABLES statement to deadlock detector in MDL subsystem.
Remove API supporting caching of pointers to TABLE_SHARE
object in MDL subsystem and all code related to it.
The problem was that locking requirements of code
implementing this API conflicted with locking requirements
of code which adds information about waits caused by flushes
to deadlock detector in MDL subsystem (the former needed to
lock LOCK_open or its future equivalent while having
write-lock on MDL_lock's rwlock, and the latter needs to be
able to read-lock MDL_lock rwlock while owning LOCK_open or
its future equivalent).
Since caching of pointers to TABLE_SHARE objects in MDL
subsystem didn't bring expected performance benefits we
decided to remove caching API rather than try to come up
with some complex solution for this problem.
--BZR--
revision-id: [email protected]
property-branch-nick: mysql-trunk-rt-pre-52044
testament3-sha1: 409d639d19f0344e8a51ff23d516df3d92b251ef1 parent bb1efc0 commit 685c5ff
3 files changed
+45
-338
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
284 | 284 | | |
285 | 285 | | |
286 | 286 | | |
287 | | - | |
288 | | - | |
289 | 287 | | |
290 | 288 | | |
291 | 289 | | |
| |||
362 | 360 | | |
363 | 361 | | |
364 | 362 | | |
365 | | - | |
366 | 363 | | |
367 | 364 | | |
368 | 365 | | |
369 | 366 | | |
370 | 367 | | |
371 | 368 | | |
372 | 369 | | |
373 | | - | |
374 | | - | |
375 | 370 | | |
376 | 371 | | |
377 | 372 | | |
| |||
460 | 455 | | |
461 | 456 | | |
462 | 457 | | |
463 | | - | |
464 | | - | |
465 | | - | |
466 | | - | |
467 | | - | |
468 | | - | |
469 | | - | |
470 | | - | |
471 | | - | |
472 | | - | |
473 | | - | |
474 | | - | |
475 | | - | |
476 | | - | |
477 | | - | |
478 | | - | |
479 | | - | |
480 | | - | |
481 | | - | |
482 | 458 | | |
483 | 459 | | |
484 | 460 | | |
| |||
695 | 671 | | |
696 | 672 | | |
697 | 673 | | |
698 | | - | |
699 | | - | |
700 | 674 | | |
701 | 675 | | |
702 | 676 | | |
| |||
860 | 834 | | |
861 | 835 | | |
862 | 836 | | |
863 | | - | |
864 | | - | |
865 | 837 | | |
866 | 838 | | |
867 | 839 | | |
| |||
1682 | 1654 | | |
1683 | 1655 | | |
1684 | 1656 | | |
1685 | | - | |
1686 | | - | |
1687 | | - | |
1688 | 1657 | | |
1689 | 1658 | | |
1690 | 1659 | | |
| |||
1886 | 1855 | | |
1887 | 1856 | | |
1888 | 1857 | | |
1889 | | - | |
1890 | | - | |
1891 | | - | |
1892 | 1858 | | |
1893 | 1859 | | |
1894 | 1860 | | |
| |||
2451 | 2417 | | |
2452 | 2418 | | |
2453 | 2419 | | |
2454 | | - | |
2455 | | - | |
2456 | | - | |
2457 | | - | |
2458 | | - | |
2459 | | - | |
2460 | | - | |
2461 | | - | |
2462 | | - | |
2463 | | - | |
2464 | | - | |
2465 | | - | |
2466 | | - | |
2467 | | - | |
2468 | | - | |
2469 | | - | |
2470 | | - | |
2471 | | - | |
2472 | | - | |
2473 | | - | |
2474 | | - | |
2475 | | - | |
2476 | | - | |
2477 | | - | |
2478 | | - | |
2479 | | - | |
2480 | | - | |
2481 | | - | |
2482 | | - | |
2483 | | - | |
2484 | | - | |
2485 | | - | |
2486 | | - | |
2487 | | - | |
2488 | | - | |
2489 | | - | |
2490 | | - | |
2491 | | - | |
2492 | | - | |
2493 | | - | |
2494 | | - | |
2495 | | - | |
2496 | | - | |
2497 | | - | |
2498 | | - | |
2499 | | - | |
2500 | | - | |
2501 | | - | |
2502 | | - | |
2503 | | - | |
2504 | | - | |
2505 | | - | |
2506 | | - | |
2507 | | - | |
2508 | | - | |
2509 | | - | |
2510 | | - | |
2511 | | - | |
2512 | | - | |
2513 | | - | |
2514 | | - | |
2515 | | - | |
2516 | | - | |
2517 | | - | |
2518 | | - | |
2519 | | - | |
2520 | | - | |
2521 | | - | |
2522 | | - | |
2523 | 2420 | | |
2524 | 2421 | | |
2525 | 2422 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
398 | 398 | | |
399 | 399 | | |
400 | 400 | | |
401 | | - | |
402 | | - | |
403 | | - | |
404 | 401 | | |
405 | 402 | | |
406 | 403 | | |
| |||
728 | 725 | | |
729 | 726 | | |
730 | 727 | | |
731 | | - | |
732 | 728 | | |
733 | 729 | | |
734 | 730 | | |
| |||
0 commit comments