From 308dccf13d68cbc43b72a582af0a08e3d2be00b9 Mon Sep 17 00:00:00 2001 From: hnwyllmm Date: Fri, 8 Jul 2022 19:50:30 +0800 Subject: [PATCH] fix no return while syntax error --- src/observer/sql/parser/parse_stage.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/observer/sql/parser/parse_stage.cpp b/src/observer/sql/parser/parse_stage.cpp index 5647273..bc96603 100644 --- a/src/observer/sql/parser/parse_stage.cpp +++ b/src/observer/sql/parser/parse_stage.cpp @@ -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; } -- GitLab