We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 97ade7e commit 04eedc6Copy full SHA for 04eedc6
cpp/src/arrow/util/async_util.cc
@@ -170,7 +170,6 @@ class AsyncTaskSchedulerImpl : public AsyncTaskScheduler {
170
if (IsAborted()) {
171
return false;
172
}
173
- running_tasks_set_.insert(task.get());
174
SubmitTaskUnlocked(std::move(task), std::move(lk));
175
return true;
176
@@ -217,6 +216,8 @@ class AsyncTaskSchedulerImpl : public AsyncTaskScheduler {
217
216
};
218
})) {
219
return OnTaskFinished(submit_result->status());
+ } else {
220
+ running_tasks_set_.insert(task.get());
221
222
223
0 commit comments