We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4128ec4 commit d32b15bCopy full SHA for d32b15b
1 file changed
src/QueryPipeline/RemoteQueryExecutor.cpp
@@ -778,9 +778,6 @@ void RemoteQueryExecutor::finish()
778
{
779
LockAndBlocker guard(was_cancelled_mutex);
780
781
- /// To make sure finish is only called once
782
- SCOPE_EXIT({ finished = true; });
783
-
784
/** If one of:
785
* - nothing started to do;
786
* - received all packets before EndOfStream;
@@ -791,6 +788,9 @@ void RemoteQueryExecutor::finish()
791
788
if (!isQueryPending() || hasThrownException())
792
789
return;
793
790
+ /// To make sure finish is only called once
+ SCOPE_EXIT({ finished = true; });
+
794
/** If you have not read all the data yet, but they are no longer needed.
795
* This may be due to the fact that the data is sufficient (for example, when using LIMIT).
796
*/
0 commit comments