From 0430714ca9b0d910ba9b290276da05adfc752f8f Mon Sep 17 00:00:00 2001 From: WingC <1018957763@qq.com> Date: Mon, 27 Apr 2020 07:45:25 -0500 Subject: [PATCH] Remove redundant call function _wait_in_flight_packet() (#3399) The function `_wait_in_flight_packet` has been called in `_send_cur_batch`. No need to call twice. --- be/src/exec/tablet_sink.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/be/src/exec/tablet_sink.cpp b/be/src/exec/tablet_sink.cpp index 30656e6fa2..59ff01646d 100644 --- a/be/src/exec/tablet_sink.cpp +++ b/be/src/exec/tablet_sink.cpp @@ -155,7 +155,6 @@ Status NodeChannel::close(RuntimeState* state) { } Status NodeChannel::_close(RuntimeState* state) { - RETURN_IF_ERROR(_wait_in_flight_packet()); return _send_cur_batch(true); }