Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion core/columnar/query_component.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,12 @@ class pending_query_operation
}
}

auto clear_callback()
{
const std::scoped_lock lock{ callback_mutex_ };
callback_ = nullptr;
}

auto dispatch() -> error
{
auto op = http_.do_http_request(
Expand Down Expand Up @@ -156,7 +162,9 @@ class pending_query_operation
#else
return_error.ec = op.error();
#endif
invoke_callback({}, return_error);

clear_callback();

return return_error;
}

Expand Down