Skip to content

Commit

Permalink
fix no return while syntax error
Browse files Browse the repository at this point in the history
  • Loading branch information
hnwyllmm committed Jul 8, 2022
1 parent ef43cea commit 308dccf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/observer/sql/parser/parse_stage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,14 +89,14 @@ void ParseStage::handle_event(StageEvent *event)

RC rc = handle_request(event);
if (RC::SUCCESS != rc) {
event->done_immediate();
callback_event(event, nullptr);
return;
}

CompletionCallback *cb = new (std::nothrow) CompletionCallback(this, nullptr);
if (cb == nullptr) {
LOG_ERROR("Failed to new callback for SQLStageEvent");
event->done_immediate();
callback_event(event, nullptr);
return;
}

Expand Down

0 comments on commit 308dccf

Please sign in to comment.