提交 308dccf1 编写于 作者: 羽飞's avatar 羽飞

fix no return while syntax error

上级 ef43cea5
...@@ -89,14 +89,14 @@ void ParseStage::handle_event(StageEvent *event) ...@@ -89,14 +89,14 @@ void ParseStage::handle_event(StageEvent *event)
RC rc = handle_request(event); RC rc = handle_request(event);
if (RC::SUCCESS != rc) { if (RC::SUCCESS != rc) {
event->done_immediate(); callback_event(event, nullptr);
return; return;
} }
CompletionCallback *cb = new (std::nothrow) CompletionCallback(this, nullptr); CompletionCallback *cb = new (std::nothrow) CompletionCallback(this, nullptr);
if (cb == nullptr) { if (cb == nullptr) {
LOG_ERROR("Failed to new callback for SQLStageEvent"); LOG_ERROR("Failed to new callback for SQLStageEvent");
event->done_immediate(); callback_event(event, nullptr);
return; return;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册