Skip to content

Commit

Permalink
Fix start cluster mode error
Browse files Browse the repository at this point in the history
Signed-off-by: Jin Hai <[email protected]>
  • Loading branch information
JinHai-CN committed Dec 23, 2024
1 parent a48a4c5 commit 84483fa
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/query_context.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,10 @@ QueryResult QueryContext::QueryStatement(const BaseStatement *base_statement) {
}

void QueryContext::CreateQueryProfiler() {
if(InfinityContext::instance().storage()->catalog() == nullptr) {
return ;
}

if (InfinityContext::instance().storage()->catalog()->GetProfile()) {
if(query_profiler_ == nullptr) {
query_profiler_ = MakeShared<QueryProfiler>(true);
Expand Down

0 comments on commit 84483fa

Please sign in to comment.