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 9c80bdc commit 0765901Copy full SHA for 0765901
be/src/exec/pipeline/query_context.cpp
@@ -381,8 +381,8 @@ QueryContext* QueryContextManager::get_or_register(const TUniqueId& query_id) {
381
// lookup query context for the second chance in sc_map
382
if (sc_it != sc_map.end()) {
383
auto ctx = std::move(sc_it->second);
384
- RETURN_NULL_IF_CTX_CANCELLED(ctx);
385
sc_map.erase(sc_it);
+ RETURN_NULL_IF_CTX_CANCELLED(ctx);
386
auto* raw_ctx_ptr = ctx.get();
387
context_map.emplace(query_id, std::move(ctx));
388
return raw_ctx_ptr;
0 commit comments