Commit 9ac4c8b
committed
Fix leaving connection in a broken state after preliminary cancellation distributed queries
The problem is that some places in the code (i.e.
RemoteSource::onUpdatePorts()), can call finish() even before
sendQueryAsync() finishes sending the query, and so if after it will try
to call finish() again (after sendQueryAsync() finishes) it will be
no-op.
The problem pops up after #92807, since RemoteSource has these (anti-)pattern.1 parent 6378841 commit 9ac4c8b
1 file changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
778 | 778 | | |
779 | 779 | | |
780 | 780 | | |
781 | | - | |
782 | | - | |
783 | | - | |
784 | 781 | | |
785 | 782 | | |
786 | 783 | | |
| |||
791 | 788 | | |
792 | 789 | | |
793 | 790 | | |
| 791 | + | |
| 792 | + | |
| 793 | + | |
794 | 794 | | |
795 | 795 | | |
796 | 796 | | |
| |||
0 commit comments