Commit d314646
committed
Distribute connections to previously blocked threads when we're done
Two methods block new connections; we were already doing the right thing
for clear_reloadable_connections, but it's better placed in
with_new_connections_blocked, where it can work for disconnect too.1 parent f9230a2 commit d314646
File tree
2 files changed
+17
-25
lines changed- activerecord
- lib/active_record/connection_adapters/abstract
- test/cases
2 files changed
+17
-25
lines changedLines changed: 17 additions & 19 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
422 | 422 | | |
423 | 423 | | |
424 | 424 | | |
425 | | - | |
426 | 425 | | |
427 | 426 | | |
428 | 427 | | |
| |||
445 | 444 | | |
446 | 445 | | |
447 | 446 | | |
448 | | - | |
449 | | - | |
450 | 447 | | |
451 | 448 | | |
452 | 449 | | |
| |||
457 | 454 | | |
458 | 455 | | |
459 | 456 | | |
460 | | - | |
461 | | - | |
462 | | - | |
463 | | - | |
464 | | - | |
465 | | - | |
466 | | - | |
467 | | - | |
468 | | - | |
469 | | - | |
470 | | - | |
471 | | - | |
472 | | - | |
473 | | - | |
474 | 457 | | |
475 | 458 | | |
476 | | - | |
477 | | - | |
478 | 459 | | |
479 | 460 | | |
480 | 461 | | |
| |||
705 | 686 | | |
706 | 687 | | |
707 | 688 | | |
| 689 | + | |
| 690 | + | |
708 | 691 | | |
709 | 692 | | |
| 693 | + | |
| 694 | + | |
| 695 | + | |
| 696 | + | |
| 697 | + | |
| 698 | + | |
| 699 | + | |
| 700 | + | |
| 701 | + | |
| 702 | + | |
| 703 | + | |
| 704 | + | |
| 705 | + | |
710 | 706 | | |
| 707 | + | |
| 708 | + | |
711 | 709 | | |
712 | 710 | | |
713 | 711 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
487 | 487 | | |
488 | 488 | | |
489 | 489 | | |
490 | | - | |
491 | | - | |
492 | | - | |
493 | | - | |
494 | | - | |
495 | | - | |
496 | 490 | | |
497 | 491 | | |
498 | 492 | | |
| |||
0 commit comments